All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Yang <weiyang@linux.vnet.ibm.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org, Wei Yang <weiyang@linux.vnet.ibm.com>
Subject: Re: [PATCH] PCI: Remove useless redundant code
Date: Wed, 15 Jul 2015 09:45:38 +0800	[thread overview]
Message-ID: <20150715014538.GB6525@richard> (raw)
In-Reply-To: <20150714220118.21427.99172.stgit@bhelgaas-glaptop2.roam.corp.google.com>

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


      reply	other threads:[~2015-07-15  1:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-14 22:01 [PATCH] PCI: Remove useless redundant code Bjorn Helgaas
2015-07-15  1:45 ` Wei Yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150715014538.GB6525@richard \
    --to=weiyang@linux.vnet.ibm.com \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.