Re: [PATCH v7 3/6] PCI: Allow pci_bus_for_each_resource() to take less arguments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 23/3/23 18:36, Andy Shevchenko wrote:
Refactor pci_bus_for_each_resource() in the same way as it's done in
pci_dev_for_each_resource() case. This will allow to hide iterator
inside the loop, where it's not used otherwise.

No functional changes intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Reviewed-by: Krzysztof Wilczyński <kw@xxxxxxxxx>
---
  drivers/pci/bus.c                  |  7 +++----
  drivers/pci/hotplug/shpchp_sysfs.c |  8 ++++----
  drivers/pci/pci.c                  |  3 +--
  drivers/pci/probe.c                |  2 +-
  drivers/pci/setup-bus.c            | 10 ++++------
  include/linux/pci.h                | 17 +++++++++++++----
  6 files changed, 26 insertions(+), 21 deletions(-)

Nice.

Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux