From: Andy Shevchenko Date: Wed, 13 Oct 2021 13:49:39 +0000 (+0300) Subject: bcm47xx: Get rid of redundant 'else' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a274bdbdfcf7d0631004b20c03d90bbfed70c9d2;p=linux.git bcm47xx: Get rid of redundant 'else' In the snipped like if (...) return ...; else the 'else' is redundant. Get rid of it. Signed-off-by: Andy Shevchenko Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/pci/pci-bcm47xx.c b/arch/mips/pci/pci-bcm47xx.c index 230d7dd273e21..e8ff8e32a729d 100644 --- a/arch/mips/pci/pci-bcm47xx.c +++ b/arch/mips/pci/pci-bcm47xx.c @@ -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; }