All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: Remove useless redundant code
@ 2015-07-14 22:01 Bjorn Helgaas
  2015-07-15  1:45 ` Wei Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Bjorn Helgaas @ 2015-07-14 22:01 UTC (permalink / raw)
  To: linux-pci; +Cc: Wei Yang

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(-)

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;


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI: Remove useless redundant code
  2015-07-14 22:01 [PATCH] PCI: Remove useless redundant code Bjorn Helgaas
@ 2015-07-15  1:45 ` Wei Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Yang @ 2015-07-15  1:45 UTC (permalink / raw)
  To: Bjorn Helgaas; +Cc: linux-pci, Wei Yang

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;

-- 
Richard Yang
Help you, Help me


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-15  1:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 22:01 [PATCH] PCI: Remove useless redundant code Bjorn Helgaas
2015-07-15  1:45 ` Wei Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.