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()
This commit is contained in:
Bjorn Helgaas
2017-09-07 13:24:20 -05:00
39 changed files with 101 additions and 108 deletions

View File

@@ -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))