]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: gpiolib: remove shadowed variable
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 5 Jan 2021 10:59:14 +0000 (11:59 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 1 Feb 2021 12:24:28 +0000 (13:24 +0100)
commit8090efb81df799e54704cd490e89fd811c7279d8
treebfa595106301f1074ffb6966782e3c208a4703fe
parent6ff29b9415f06b098995bf3e57f2a28a21868cf1
gpio: gpiolib: remove shadowed variable

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: 15b81a54a1cd ("gpio: gpiolib: Normalize return code variable name")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c