summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-11-10 12:07:39 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2021-11-15 15:46:45 +1100
commit2da516d7ed0865bf9835830907f2f6631006d628 (patch)
tree6897f11b6f0710436268f656f702d48d635e5fe2 /arch
parentdae581864609d36fb58855fd59880b4941ce9d14 (diff)
downloadlinux-stable-2da516d7ed0865bf9835830907f2f6631006d628.tar.gz
linux-stable-2da516d7ed0865bf9835830907f2f6631006d628.tar.bz2
linux-stable-2da516d7ed0865bf9835830907f2f6631006d628.zip
powerpc/83xx/mpc8349emitx: Drop unused variable
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
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
index bb789f33c70e..a38372f9ac12 100644
--- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
+++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
@@ -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);