Skip to content

Commit 233bc28

Browse files
Tian TaoKalle Valo
authored andcommitted
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 <[email protected]> Acked-by: Michael Büsch <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 47ec636 commit 233bc28

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/ssb/main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,7 @@ void ssb_bus_unregister(struct ssb_bus *bus)
434434
int err;
435435

436436
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)
440438
pr_debug("Can not unregister GPIO driver: %i\n", err);
441439

442440
ssb_buses_lock();

0 commit comments

Comments
 (0)