linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: fix build warning in iov.c
@ 2013-01-30  4:10 Yijing Wang
  2013-02-01 23:03 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Yijing Wang @ 2013-01-30  4:10 UTC (permalink / raw)
  To: Bjorn Helgaas, Yinghai Lu; +Cc: linux-pci, Hanjun Guo, jiang.liu, Yijing Wang

Delete unused variable rc to fix build warning in driver/pci/iov.c

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
 drivers/pci/iov.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index f8720af..4ea7139 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -33,7 +33,6 @@ static inline u8 virtfn_devfn(struct pci_dev *dev, int id)
 
 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr)
 {
-	int rc;
 	struct pci_bus *child;
 
 	if (bus->number == busnr)
-- 
1.7.1



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

* Re: [PATCH] PCI: fix build warning in iov.c
  2013-01-30  4:10 [PATCH] PCI: fix build warning in iov.c Yijing Wang
@ 2013-02-01 23:03 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2013-02-01 23:03 UTC (permalink / raw)
  To: Yijing Wang; +Cc: Yinghai Lu, linux-pci, Hanjun Guo, jiang.liu

On Tue, Jan 29, 2013 at 9:10 PM, Yijing Wang <wangyijing@huawei.com> wrote:
> Delete unused variable rc to fix build warning in driver/pci/iov.c
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>

Applied to my pci/yinghai-root-bus-hotplug branch for v3.9.  Thanks!

Bjorn

> ---
>  drivers/pci/iov.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
> index f8720af..4ea7139 100644
> --- a/drivers/pci/iov.c
> +++ b/drivers/pci/iov.c
> @@ -33,7 +33,6 @@ static inline u8 virtfn_devfn(struct pci_dev *dev, int id)
>
>  static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr)
>  {
> -       int rc;
>         struct pci_bus *child;
>
>         if (bus->number == busnr)
> --
> 1.7.1
>
>

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

end of thread, other threads:[~2013-02-01 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-30  4:10 [PATCH] PCI: fix build warning in iov.c Yijing Wang
2013-02-01 23:03 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).