Make code more readable with list_for_each_entry_safe.
(Is this a non i386? I can't compile it.)


Signed-off-by: Domen Puncer <domen@coderock.org>

--- c/drivers/usb/host/hc_sl811.c	Wed Jun 16 07:19:43 2004
+++ list_for_each/drivers/usb/host/hc_sl811.c	Wed Jul 28 18:53:01 2004
@@ -1343,15 +1343,11 @@
  *****************************************************************/
 static void __exit hci_hcd_cleanup (void)
 {
-	struct list_head *hci_l;
-	hci_t *hci;
+	hci_t *hci, *tmp;
 
 	DBGFUNC ("Enter hci_hcd_cleanup\n");
-	for (hci_l = hci_hcd_list.next; hci_l != &hci_hcd_list;) {
-		hci = list_entry (hci_l, hci_t, hci_hcd_list);
-		hci_l = hci_l->next;
+	list_for_each_entry_safe(hci, tmp, &hci_hcd_list, hci_hcd_list)
 		hc_release_hci (hci);
-	}
 }
 
 module_init (hci_hcd_init);
