summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-05-18 10:52:32 +0800
committerKalle Valo <kvalo@codeaurora.org>2021-06-15 13:11:34 +0300
commit233bc283728241aa522fd2889649261b742cee5a (patch)
tree748f68d56131815aa078fec32659b27ba0a5c195
parent47ec636f7a25aa2549e198c48ecb6b1c25d05456 (diff)
downloadlinux-233bc283728241aa522fd2889649261b742cee5a.tar.bz2
ssb: remove unreachable code
The return value of ssb_bus_unregister can only be 0 or -1, so this condition if (err == -EBUSY) will not hold, so delete it. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Acked-by: Michael Büsch <m@bues.ch> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1621306352-3632-1-git-send-email-tiantao6@hisilicon.com
-rw-r--r--drivers/ssb/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index 620cc9dccad7..3a29b5570f9f 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -434,9 +434,7 @@ void ssb_bus_unregister(struct ssb_bus *bus)
int err;
err = ssb_gpio_unregister(bus);
- if (err == -EBUSY)
- pr_debug("Some GPIOs are still in use\n");
- else if (err)
+ if (err)
pr_debug("Can not unregister GPIO driver: %i\n", err);
ssb_buses_lock();