OSDN Git Service

powerpc/83xx/mpc8349emitx: Drop unused variable
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 10 Nov 2021 11:07:39 +0000 (12:07 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 15 Nov 2021 04:46:45 +0000 (15:46 +1100)
Commit 5d354dc35ebb ("powerpc/83xx/mpc8349emitx: Make
mcu_gpiochip_remove() return void") removed the usage of the variable
ret, but failed to remove the variable itself, resulting in:

arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c: In function ‘mcu_remove’:
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c:189:6: error: unused variable ‘ret’ [-Werror=unused-variable]
  189 |  int ret;
      |      ^~~

So remove the variable now.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211110110739.1072634-1-u.kleine-koenig@pengutronix.de
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c

index bb789f3..a38372f 100644 (file)
@@ -186,7 +186,6 @@ err:
 static int mcu_remove(struct i2c_client *client)
 {
        struct mcu *mcu = i2c_get_clientdata(client);
-       int ret;
 
        kthread_stop(shutdown_thread);