diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2017-09-01 16:35:30 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-09-01 16:35:30 -0500 |
commit | cacf7eaf2a36cc51c24b591d681676b6d27a7a6e (patch) | |
tree | 7f1ada00ee84a4e22b938685745b84e770ca73aa /drivers/pci/pci-sysfs.c | |
parent | 0142626d08223b0f6ad04859301b53178f11c317 (diff) | |
download | talos-obmc-linux-cacf7eaf2a36cc51c24b591d681676b6d27a7a6e.tar.gz talos-obmc-linux-cacf7eaf2a36cc51c24b591d681676b6d27a7a6e.zip |
PCI: Remove unused "res" variable from pci_resource_io()
The "res" variable in pci_resource_io() is never used. Remove it.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 2f3780b50723..0e4370540786 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -1211,11 +1211,8 @@ static ssize_t pci_resource_io(struct file *filp, struct kobject *kobj, { struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); int bar = (unsigned long)attr->private; - struct resource *res; unsigned long port = off; - res = &pdev->resource[bar]; - port += pci_resource_start(pdev, bar); if (port > pci_resource_end(pdev, bar)) |