[openib-general] [PATCHE 01/12] SRP: changing ibsrpdm

Ishai Rabinovitz ishai at mellanox.co.il
Mon May 1 04:24:01 PDT 2006


Remove a redundant if

Signed-off-by: Ishai Rabinovitz <ishai at mellanox.co.il>

Index: last_stable/drivers/infiniband/ulp/srp/ib_srp.c
===================================================================
--- last_stable.orig/drivers/infiniband/ulp/srp/ib_srp.c	2006-04-17 10:06:19.000000000 +0300
+++ last_stable/drivers/infiniband/ulp/srp/ib_srp.c	2006-04-17 10:11:24.000000000 +0300
@@ -1798,8 +1798,7 @@ static void srp_remove_one(struct ib_dev
 		list_for_each_entry_safe(target, tmp_target,
 					 &host->target_list, list) {
 			spin_lock_irqsave(target->scsi_host->host_lock, flags);
-			if (target->state != SRP_TARGET_REMOVED)
-				target->state = SRP_TARGET_REMOVED;
+			target->state = SRP_TARGET_REMOVED;
 			spin_unlock_irqrestore(target->scsi_host->host_lock, flags);
 		}
 		mutex_unlock(&host->target_mutex);
-- 
Ishai Rabinovitz



More information about the general mailing list