diff mbox

PCI: Remove useless redundant code

Message ID 20150714220118.21427.99172.stgit@bhelgaas-glaptop2.roam.corp.google.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Bjorn Helgaas July 14, 2015, 10:01 p.m. UTC
Remove redundant code from __pci_bus_find_cap_start().  No functional
change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/pci/pci.c |    2 --
 1 file changed, 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Wei Yang July 15, 2015, 1:45 a.m. UTC | #1
On Tue, Jul 14, 2015 at 05:01:18PM -0500, Bjorn Helgaas wrote:
>Remove redundant code from __pci_bus_find_cap_start().  No functional
>change.
>
>Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Reviewed-by: Wei Yang <weiyang@linux.vnet.ibm.com>

>---
> drivers/pci/pci.c |    2 --
> 1 file changed, 2 deletions(-)
>
>diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
>index 29b5605..359b954 100644
>--- a/drivers/pci/pci.c
>+++ b/drivers/pci/pci.c
>@@ -195,8 +195,6 @@ static int __pci_bus_find_cap_start(struct pci_bus *bus,
> 		return PCI_CAPABILITY_LIST;
> 	case PCI_HEADER_TYPE_CARDBUS:
> 		return PCI_CB_CAPABILITY_LIST;
>-	default:
>-		return 0;
> 	}
>
> 	return 0;
diff mbox

Patch

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 29b5605..359b954 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -195,8 +195,6 @@  static int __pci_bus_find_cap_start(struct pci_bus *bus,
 		return PCI_CAPABILITY_LIST;
 	case PCI_HEADER_TYPE_CARDBUS:
 		return PCI_CB_CAPABILITY_LIST;
-	default:
-		return 0;
 	}
 
 	return 0;