Re: [PATCH] spi: initialize ret variable
From: 郭力豪
Date: Wed Feb 09 2022 - 21:44:50 EST
>Yes, that's what I'm asking.
>The original setting was ret=0; I just wanted to remove it when defining
>the ret, but it looks like it's required.
>Yes, it should return error at default
>I will submit new patch for this.
> The old behavior returned 0 and I am treating this as a regression.
The goal here isn't just to shut up warnings, it's to fix any problems
that they identify. Unconditionally initialising return values is a
common way of fixing warnings while leaving real problems in place.
The original setting was ret=0; I just wanted to remove it when defining
the ret, but it looks like it's required.
Yes, it should return error at default
I will submit new patch for this.