diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-05-29 23:01:03 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-05-30 11:34:27 -0400 |
commit | c893d133eaccdda2516a3e71cd05a7dac2e14b00 (patch) | |
tree | 2f296b5a88e4e794fb48d4c22c8108ce6f671bbc /drivers/pci/iov.c | |
parent | d97ffe236894856d08146390ef3fbe6448a8ac2b (diff) |
PCI: Make pci_bus_add_device() void
pci_bus_add_device() always returns 0, so there's no point in returning
anything at all. Make it a void function and remove the tests of the
return value from the callers.
[bhelgaas: changelog, remove unused "err" from i82875p_setup_overfl_dev()]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/iov.c')
-rw-r--r-- | drivers/pci/iov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index de7a74782f92..cb6f24740ee3 100644 --- a/drivers/pci/iov.c +++ b/drivers/pci/iov.c | |||
@@ -106,7 +106,7 @@ static int virtfn_add(struct pci_dev *dev, int id, int reset) | |||
106 | pci_device_add(virtfn, virtfn->bus); | 106 | pci_device_add(virtfn, virtfn->bus); |
107 | mutex_unlock(&iov->dev->sriov->lock); | 107 | mutex_unlock(&iov->dev->sriov->lock); |
108 | 108 | ||
109 | rc = pci_bus_add_device(virtfn); | 109 | pci_bus_add_device(virtfn); |
110 | sprintf(buf, "virtfn%u", id); | 110 | sprintf(buf, "virtfn%u", id); |
111 | rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf); | 111 | rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf); |
112 | if (rc) | 112 | if (rc) |