]> www.infradead.org Git - users/dwmw2/linux.git/commit
gpiolib: Remove redundant assignment of return variable
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Apr 2025 09:55:16 +0000 (12:55 +0300)
committerBartosz Golaszewski <brgl@bgdev.pl>
Thu, 17 Apr 2025 13:22:06 +0000 (15:22 +0200)
commit550300b9a295a591e0721a31f8c964a4bc08d51c
tree4fc08866a56219467020d38fb50552aff72d234d
parent7cc868831b98eb10e8ae50a8e5a9f04674d1a2ab
gpiolib: Remove redundant assignment of return variable

In some functions the returned variable is assigned to 0 and then
reassigned to the actual value. Remove redundant assignments.

In one case make it more clear that the assignment is not needed.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250416095645.2027695-9-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib.c