Patchwork PCI: fix build warning in iov.c

login
register
mail settings
Submitter Yijing Wang
Date Jan. 30, 2013, 4:10 a.m.
Message ID <1359519038-25424-1-git-send-email-wangyijing@huawei.com>
Download mbox | patch
Permalink /patch/216763/
State Accepted
Headers show

Comments

Yijing Wang - Jan. 30, 2013, 4:10 a.m.
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(-)
Bjorn Helgaas - Feb. 1, 2013, 11:03 p.m.
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
>
>
--
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

Patch

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)