public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch-kj] use list_for_each() i386/pci/pcbios.c
@ 2004-07-23  9:19 maximilian attems
  2004-08-02 22:43 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: maximilian attems @ 2004-07-23  9:19 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/arch/i386/pci/pcbios.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/i386/pci/pcbios.c~list_for_each-i386pci-pcbios arch/i386/pci/pcbios.c
--- linux-2.6.7-bk20/arch/i386/pci/pcbios.c~list_for_each-i386pci-pcbios	2004-07-11 14:41:13.000000000 +0200
+++ linux-2.6.7-bk20-max/arch/i386/pci/pcbios.c	2004-07-11 14:41:13.000000000 +0200
@@ -365,7 +365,7 @@ void __devinit pcibios_sort(void)
 		idx = found = 0;
 		while (pci_bios_find_device(dev->vendor, dev->device, idx, &bus, &devfn) == PCIBIOS_SUCCESSFUL) {
 			idx++;
-			for (ln=pci_devices.next; ln != &pci_devices; ln=ln->next) {
+			list_for_each(ln, &pci_devices) {
 				d = pci_dev_g(ln);
 				if (d->bus->number == bus && d->devfn == devfn) {
 					list_del(&d->global_list);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch-kj] use list_for_each() i386/pci/pcbios.c
  2004-07-23  9:19 [patch-kj] use list_for_each() i386/pci/pcbios.c maximilian attems
@ 2004-08-02 22:43 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-08-02 22:43 UTC (permalink / raw)
  To: maximilian attems; +Cc: linux-kernel

On Fri, Jul 23, 2004 at 11:19:16AM +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:44 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:19 [patch-kj] use list_for_each() i386/pci/pcbios.c maximilian attems
2004-08-02 22:43 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox