Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Tian Tao and committed by
Kalle Valo
233bc283 47ec636f

+1 -3
+1 -3
drivers/ssb/main.c
··· 434 434 int err; 435 435 436 436 err = ssb_gpio_unregister(bus); 437 - if (err == -EBUSY) 438 - pr_debug("Some GPIOs are still in use\n"); 439 - else if (err) 437 + if (err) 440 438 pr_debug("Can not unregister GPIO driver: %i\n", err); 441 439 442 440 ssb_buses_lock();