From: Shawn Lin Date: Fri, 1 Sep 2017 21:35:30 +0000 (-0500) Subject: PCI: Remove unused "res" variable from pci_resource_io() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cacf7eaf2a36cc51c24b591d681676b6d27a7a6e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bjorn Helgaas --- 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))