diff options
author | Andy Shevchenko <[email protected]> | 2023-03-30 19:24:33 +0300 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2023-04-05 15:10:14 -0500 |
commit | e34a6ba53e80d7f6c6eb61d0438842d9ba63504a (patch) | |
tree | 03cc71dbba1e321e0b8a79cf41fcb0842113941d | |
parent | 02992064bdffc97403b6058491094cd41d1a11ef (diff) |
EISA: Drop unused pci_bus_for_each_resource() index argument
pci_bus_for_each_resource() can hide the iterator index if it is not needed
otherwise. Drop the index from pci_eisa_init() since it's not needed there.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Krzysztof Wilczyński <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
-rw-r--r-- | drivers/eisa/pci_eisa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/eisa/pci_eisa.c b/drivers/eisa/pci_eisa.c index 930c2332c3c4..8173e60bb808 100644 --- a/drivers/eisa/pci_eisa.c +++ b/drivers/eisa/pci_eisa.c @@ -20,8 +20,8 @@ static struct eisa_root_device pci_eisa_root; static int __init pci_eisa_init(struct pci_dev *pdev) { - int rc, i; struct resource *res, *bus_res = NULL; + int rc; if ((rc = pci_enable_device (pdev))) { dev_err(&pdev->dev, "Could not enable device\n"); @@ -38,7 +38,7 @@ static int __init pci_eisa_init(struct pci_dev *pdev) * eisa_root_register() can only deal with a single io port resource, * so we use the first valid io port resource. */ - pci_bus_for_each_resource(pdev->bus, res, i) + pci_bus_for_each_resource(pdev->bus, res) if (res && (res->flags & IORESOURCE_IO)) { bus_res = res; break; |