On Tue, Jan 05, 2021 at 12:14:34PM +0100, Geert Uytterhoeven wrote: > On Tue, Jan 5, 2021 at 12:00 PM Wolfram Sang > <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> wrote: > > After refactoring, we had two variables for the same thing. Remove the > > second declaration, one is enough here. Found by cppcheck. > > > > drivers/gpio/gpiolib.c:2551:17: warning: Local variable 'ret' shadows outer variable [shadowVariable] > > > > Fixes: d377f56f34f5 ("gpio: gpiolib: Normalize return code variable name") > > Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> > > Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Ccing Linus & Bartosz
Attachment:
signature.asc
Description: PGP signature