Skip to content

Commit

Permalink
PCI: Remove unused "res" variable from pci_resource_io()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Lin authored and Bjorn Helgaas committed Sep 1, 2017
1 parent 0142626 commit cacf7ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/pci/pci-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit cacf7ea

Please sign in to comment.