diff options
author | Bart Van Assche | 2015-05-18 13:25:54 +0200 |
---|---|---|
committer | Doug Ledford | 2015-05-18 19:35:56 +0200 |
commit | 47513cf4f4a4a9d1db2823de9c5864f834dbaecf (patch) | |
tree | ddd66d469a90e0b8235321467b3f282587d46cd6 /drivers | |
parent | IB/srp: Rearrange module description (diff) | |
download | kernel-qcow2-linux-47513cf4f4a4a9d1db2823de9c5864f834dbaecf.tar.gz kernel-qcow2-linux-47513cf4f4a4a9d1db2823de9c5864f834dbaecf.tar.xz kernel-qcow2-linux-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')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 2 |
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) { |