Skip to content

Commit

Permalink
IB/srp: Remove a superfluous check from srp_free_req_data()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bart Van Assche authored and Doug Ledford committed May 18, 2015
1 parent 33ab3e5 commit 47513cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 47513cf

Please sign in to comment.