Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: ibmphp: Remove unneeded break

A break is not needed if it is preceded by a return.

Based on Tom Rix's treewide patch; this instance extracted from Joe
Perches' list.

Link: https://lore.kernel.org/r/20201017160928.12698-1-trix@redhat.com
Link: https://lore.kernel.org/r/f530b7aeecbbf9654b4540cfa20023a4c2a11889.camel@perches
.com
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Tom Rix <trix@redhat.com>
Cc: Joe Perches <joe@perches.com>

-2
-2
drivers/pci/hotplug/ibmphp_pci.c
··· 294 294 default: 295 295 err("MAJOR PROBLEM!!!!, header type not supported? %x\n", hdr_type); 296 296 return -ENXIO; 297 - break; 298 297 } /* end of switch */ 299 298 } /* end of valid device */ 300 299 } /* end of for */ ··· 1508 1509 default: 1509 1510 err("MAJOR PROBLEM!!!! Cannot read device's header\n"); 1510 1511 return -1; 1511 - break; 1512 1512 } /* end of switch */ 1513 1513 } /* end of valid device */ 1514 1514 } /* end of for */