Commit 47513cf4 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford
Browse files

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: default avatarBart Van Assche <>
Cc: Sagi Grimberg <>
Cc: Sebastian Parschauer <>
Signed-off-by: default avatarDoug Ledford <>
parent 33ab3e5b
......@@ -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)
for (i = 0; i < target->req_ring_size; ++i) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment