projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ab3e5
)
IB/srp: Remove a superfluous check from srp_free_req_data()
author
Bart Van Assche
<bart.vanassche@sandisk.com>
Mon, 18 May 2015 11:25:54 +0000
(13:25 +0200)
committer
Doug 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/srp/ib_srp.c
b/drivers/infiniband/ulp/srp/ib_srp.c
index 10dd8f266ec1919d596bc7a4ba4bd16bbba23b29..af39e68c1bbdca214a4554d3bb3bf3692f36eb8f 100644
(file)
--- 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) {