]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bcm47xx: Get rid of redundant 'else'
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 13 Oct 2021 13:49:39 +0000 (16:49 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 18 Oct 2021 16:10:48 +0000 (18:10 +0200)
In the snipped like

if (...)
return ...;
else

the 'else' is redundant. Get rid of it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-bcm47xx.c

index 230d7dd273e21af0668062c648ee2b6962383de1..e8ff8e32a729dea46fcae98bb213c9221d1205ec 100644 (file)
@@ -93,12 +93,10 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
 #ifdef CONFIG_BCM47XX_SSB
        if (bcm47xx_bus_type ==  BCM47XX_BUS_TYPE_SSB)
                return bcm47xx_pcibios_plat_dev_init_ssb(dev);
-       else
 #endif
 #ifdef CONFIG_BCM47XX_BCMA
        if  (bcm47xx_bus_type ==  BCM47XX_BUS_TYPE_BCMA)
                return bcm47xx_pcibios_plat_dev_init_bcma(dev);
-       else
 #endif
-               return 0;
+       return 0;
 }