summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2015-05-18 13:25:54 +0200
committerDoug Ledford <dledford@redhat.com>2015-05-18 13:35:56 -0400
commit47513cf4f4a4a9d1db2823de9c5864f834dbaecf (patch)
treeddd66d469a90e0b8235321467b3f282587d46cd6 /drivers/infiniband/ulp
parent33ab3e5ba2f7d647812dbca573ee3ba5baf58284 (diff)
downloadlinux-stable-47513cf4f4a4a9d1db2823de9c5864f834dbaecf.tar.gz
linux-stable-47513cf4f4a4a9d1db2823de9c5864f834dbaecf.tar.bz2
linux-stable-47513cf4f4a4a9d1db2823de9c5864f834dbaecf.zip
IB/srp: Remove a superfluous check from srp_free_req_data()
The function srp_free_req_data() does not use ch->target. Hence remove the ch->target != NULL check. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Sagi Grimberg <sagig@mellanox.com> Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 10dd8f266ec1..af39e68c1bbd 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -836,7 +836,7 @@ static void srp_free_req_data(struct srp_target_port *target,
struct srp_request *req;
int i;
- if (!ch->target || !ch->req_ring)
+ if (!ch->req_ring)
return;
for (i = 0; i < target->req_ring_size; ++i) {