summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@sgi.com>2006-02-09 14:14:52 -0800
committerTony Luck <tony.luck@intel.com>2006-02-09 14:14:52 -0800
commitb6bb761897d3b0225fa9d61fc4782b02bab9a6e1 (patch)
tree79e3ace3f1bf58f52d635ccee3d27866678d5ce4 /arch
parent8b34ff427d6f3b0a1207829350b9db16376f88c5 (diff)
downloadop-kernel-dev-b6bb761897d3b0225fa9d61fc4782b02bab9a6e1.zip
op-kernel-dev-b6bb761897d3b0225fa9d61fc4782b02bab9a6e1.tar.gz
[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>
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/sn/kernel/io_init.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/ia64/sn/kernel/io_init.c b/arch/ia64/sn/kernel/io_init.c
index 2e4e56b..3437c23 100644
--- a/arch/ia64/sn/kernel/io_init.c
+++ b/arch/ia64/sn/kernel/io_init.c
@@ -617,17 +617,15 @@ void sn_bus_store_sysdata(struct pci_dev *dev)
void sn_bus_free_sysdata(void)
{
struct sysdata_el *element;
- struct list_head *list;
+ struct list_head *list, *safe;
-sn_sysdata_free_start:
- list_for_each(list, &sn_sysdata_list) {
+ list_for_each_safe(list, safe, &sn_sysdata_list) {
element = list_entry(list, struct sysdata_el, entry);
list_del(&element->entry);
list_del(&(((struct pcidev_info *)
(element->sysdata))->pdi_list));
kfree(element->sysdata);
kfree(element);
- goto sn_sysdata_free_start;
}
return;
}
OpenPOWER on IntegriCloud