ssb/gpio: Remove unnecessary WARN_ON from driver_gpio
authorMichael Büsch <m@bues.ch>
Mon, 10 Jun 2019 18:49:27 +0000 (20:49 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 05:05:34 +0000 (08:05 +0300)
The WARN_ON triggers on older BCM4401-B0 100Base-TX ethernet controllers.
The warning serves no purpose. So let's just remove it.

Reported-by: H Buus <ubuntu@hbuus.com>
Signed-off-by: Michael Büsch <m@bues.ch>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/ssb/driver_gpio.c

index e809dae4c470adde136c4bb60aa1a762bae821a2..66a76fd83248e7f60bce2ec88d3735b4304c9a1b 100644 (file)
@@ -460,9 +460,6 @@ int ssb_gpio_init(struct ssb_bus *bus)
                return ssb_gpio_chipco_init(bus);
        else if (ssb_extif_available(&bus->extif))
                return ssb_gpio_extif_init(bus);
-       else
-               WARN_ON(1);
-
        return -1;
 }
 
@@ -472,9 +469,6 @@ int ssb_gpio_unregister(struct ssb_bus *bus)
            ssb_extif_available(&bus->extif)) {
                gpiochip_remove(&bus->gpio);
                return 0;
-       } else {
-               WARN_ON(1);
        }
-
        return -1;
 }