From: Bart Van Assche Date: Mon, 18 May 2015 11:25:54 +0000 (+0200) Subject: IB/srp: Remove a superfluous check from srp_free_req_data() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=47513cf4f4a4a9d1db2823de9c5864f834dbaecf;p=linux-beck.git 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 Cc: Sagi Grimberg Cc: Sebastian Parschauer Signed-off-by: Doug Ledford --- 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) {