]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: remove unreachable code
authorTian Tao <tiantao6@hisilicon.com>
Tue, 18 May 2021 02:52:32 +0000 (10:52 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 Jun 2021 10:11:34 +0000 (13:11 +0300)
commita54326bfd671b7a6cd79c01a8d28bdb12d48e7b0
tree748f68d56131815aa078fec32659b27ba0a5c195
parent10564d7fd812fcf1b83137b2c93d062037d834b7
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
drivers/ssb/main.c