Merge ../linux-2.6/
[sfrench/cifs-2.6.git] / drivers / scsi / qla2xxx / qla_init.c
index ce32322f1e19ae095a7e52c0a09f2b8529d6caf9..ce74a6025a07693c8a4475efba5fe2780b2f5b0f 100644 (file)
@@ -2347,8 +2347,7 @@ qla2x00_configure_fabric(scsi_qla_host_t *ha)
                        }
 
                        /* Remove device from the new list and add it to DB */
                        }
 
                        /* Remove device from the new list and add it to DB */
-                       list_del(&fcport->list);
-                       list_add_tail(&fcport->list, &ha->fcports);
+                       list_move_tail(&fcport->list, &ha->fcports);
 
                        /* Login and update database */
                        qla2x00_fabric_dev_login(ha, fcport, &next_loopid);
 
                        /* Login and update database */
                        qla2x00_fabric_dev_login(ha, fcport, &next_loopid);