diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-06-17 23:37:30 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-06-17 23:37:30 -0400 |
commit | 549c5fc2c8149498118f2494a1b6a4938ca05985 (patch) | |
tree | 409aff9ba655db4a58d475a7f74f7917d8eca31e /drivers/infiniband/ulp/srp | |
parent | 1962a4a1e4b3716aa836ebeb5b80c804a7f7c5ba (diff) |
IB/srp: Get rid of unneeded use of list_for_each_entry_safe()
list_for_each_entry_safe() is used in one place where the list isn't
modified. So just change it to list_for_each_entry().
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 28d741e7805c..7c0a3d9c9056 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
@@ -1867,8 +1867,7 @@ static void srp_remove_one(struct ib_device *device) | |||
1867 | * commands and don't try to reconnect. | 1867 | * commands and don't try to reconnect. |
1868 | */ | 1868 | */ |
1869 | mutex_lock(&host->target_mutex); | 1869 | mutex_lock(&host->target_mutex); |
1870 | list_for_each_entry_safe(target, tmp_target, | 1870 | list_for_each_entry(target, &host->target_list, list) { |
1871 | &host->target_list, list) { | ||
1872 | spin_lock_irqsave(target->scsi_host->host_lock, flags); | 1871 | spin_lock_irqsave(target->scsi_host->host_lock, flags); |
1873 | if (target->state != SRP_TARGET_REMOVED) | 1872 | if (target->state != SRP_TARGET_REMOVED) |
1874 | target->state = SRP_TARGET_REMOVED; | 1873 | target->state = SRP_TARGET_REMOVED; |