[IA64-SGI] Small cleanup for misuse of list_for_each to list_for_each_safe.

Patch was suggested by Kenneth W. Chen here

Signed-off-by: Prarit Bhargava <prarit@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Prarit Bhargava and committed by Tony Luck b6bb7618 8b34ff42

+2 -4
+2 -4
arch/ia64/sn/kernel/io_init.c
··· 617 617 void sn_bus_free_sysdata(void) 618 618 { 619 619 struct sysdata_el *element; 620 - struct list_head *list; 620 + struct list_head *list, *safe; 621 621 622 - sn_sysdata_free_start: 623 - list_for_each(list, &sn_sysdata_list) { 622 + list_for_each_safe(list, safe, &sn_sysdata_list) { 624 623 element = list_entry(list, struct sysdata_el, entry); 625 624 list_del(&element->entry); 626 625 list_del(&(((struct pcidev_info *) 627 626 (element->sysdata))->pdi_list)); 628 627 kfree(element->sysdata); 629 628 kfree(element); 630 - goto sn_sysdata_free_start; 631 629 } 632 630 return; 633 631 }