Use available list_for_each_entry_safe_reverse() function Signed-off-by: Alexis Bruemmer <alexisb@xxxxxxxxxx> --- Index: linux-2.6.17-rc5/drivers/scsi/sas/sas_discover.c =================================================================== --- linux-2.6.17-rc5.orig/drivers/scsi/sas/sas_discover.c 2006-06-02 15:48:52.000000000 -0700 +++ linux-2.6.17-rc5/drivers/scsi/sas/sas_discover.c 2006-06-02 18:01:08.000000000 -0700 @@ -634,7 +634,7 @@ sas_begin_event(DISCE_PORT_GONE, &port->disc.disc_event_lock, &port->disc.pending); - list_for_each_entry_reverse_safe(dev,n,&port->dev_list,dev_list_node) + list_for_each_entry_safe_reverse(dev,n,&port->dev_list,dev_list_node) sas_unregister_dev(dev); port->port->rphy = NULL; - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html