Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cacf7eaf authored by Shawn Lin's avatar Shawn Lin Committed by Bjorn Helgaas
Browse files

PCI: Remove unused "res" variable from pci_resource_io()



The "res" variable in pci_resource_io() is never used.  Remove it.

Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 0142626d
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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))