* [patch-kj] use list_for_each() drivers/pci/setup-bus.c
@ 2004-07-23 9:21 maximilian attems
2004-08-02 22:42 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: maximilian attems @ 2004-07-23 9:21 UTC (permalink / raw)
To: linux-kernel; +Cc: greg
Use list_for_each() where applicable
- for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
+ list_for_each(list, &ymf_devs) {
pure cosmetic change, defined as a preprocessor macro in:
include/linux/list.h
patch against 2.6.7-bk20, please tell if you need against newer.
From: Domen Puncer <domen@coderock.org>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
---
linux-2.6.7-bk20-max/drivers/pci/setup-bus.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -puN drivers/pci/setup-bus.c~list_for_each-pci-setup-bus drivers/pci/setup-bus.c
--- linux-2.6.7-bk20/drivers/pci/setup-bus.c~list_for_each-pci-setup-bus 2004-07-11 14:41:20.000000000 +0200
+++ linux-2.6.7-bk20-max/drivers/pci/setup-bus.c 2004-07-11 14:41:20.000000000 +0200
@@ -537,10 +537,11 @@ pci_assign_unassigned_resources(void)
/* Depth first, calculate sizes and alignments of all
subordinate buses. */
- for(ln=pci_root_buses.next; ln != &pci_root_buses; ln=ln->next)
+ list_for_each(ln, &pci_root_buses) {
pci_bus_size_bridges(pci_bus_b(ln));
+ }
/* Depth last, allocate resources and update the hardware. */
- for(ln=pci_root_buses.next; ln != &pci_root_buses; ln=ln->next) {
+ list_for_each(ln, &pci_root_buses) {
pci_bus_assign_resources(pci_bus_b(ln));
pci_enable_bridges(pci_bus_b(ln));
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [patch-kj] use list_for_each() drivers/pci/setup-bus.c
2004-07-23 9:21 [patch-kj] use list_for_each() drivers/pci/setup-bus.c maximilian attems
@ 2004-08-02 22:42 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-08-02 22:42 UTC (permalink / raw)
To: maximilian attems; +Cc: linux-kernel
On Fri, Jul 23, 2004 at 11:21:53AM +0200, maximilian attems wrote:
>
> Use list_for_each() where applicable
> - for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
> + list_for_each(list, &ymf_devs) {
> pure cosmetic change, defined as a preprocessor macro in:
> include/linux/list.h
>
> patch against 2.6.7-bk20, please tell if you need against newer.
>
> From: Domen Puncer <domen@coderock.org>
> Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-02 22:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-23 9:21 [patch-kj] use list_for_each() drivers/pci/setup-bus.c maximilian attems
2004-08-02 22:42 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox