summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-09-07 20:24:20 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-09-07 20:24:20 +0200
commit27e87395ae3497ebb63942150e43999c93a83ed0 (patch)
tree6b8694a556139117401653a5bea2ddff9470bcc9 /drivers/pci/pci-sysfs.c
parentMerge branch 'pci/resource' into next (diff)
parentPCI: Fix typos and whitespace errors (diff)
downloadlinux-27e87395ae3497ebb63942150e43999c93a83ed0.tar.xz
linux-27e87395ae3497ebb63942150e43999c93a83ed0.zip
Merge branch 'pci/trivial' into next
* pci/trivial: PCI: Fix typos and whitespace errors PCI: Remove unused "res" variable from pci_resource_io() PCI: Correct kernel-doc of pci_vpd_srdt_size(), pci_vpd_srdt_tag()
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index c9cdc8a1d48a..1eecfa301f7f 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))