IB/srp: Remove a superfluous check from srp_free_req_data()
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 18 May 2015 11:25:54 +0000 (13:25 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:56 +0000 (13:35 -0400)
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>
drivers/infiniband/ulp/srp/ib_srp.c

index 10dd8f266ec1919d596bc7a4ba4bd16bbba23b29..af39e68c1bbdca214a4554d3bb3bf3692f36eb8f 100644 (file)
@@ -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) {