Remove a redundant if

Signed-off-by: Ishai Rabinovitz <[EMAIL PROTECTED]>

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
_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to