projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0142626
)
PCI: Remove unused "res" variable from pci_resource_io()
author
Shawn Lin
<shawn.lin@rock-chips.com>
Fri, 1 Sep 2017 21:35:30 +0000
(16:35 -0500)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Fri, 1 Sep 2017 21:35:30 +0000
(16:35 -0500)
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>
drivers/pci/pci-sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-sysfs.c
b/drivers/pci/pci-sysfs.c
index
2f3780b
..
0e43705
100644
(file)
--- 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))