diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-11-02 16:11:32 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-12-14 19:18:17 +0300 |
commit | aecb66b2b01a87b4b723267b9193c8f00d661c1f (patch) | |
tree | 276d4e417c77dba2933130fe5de1868f776c15fe /drivers | |
parent | aafec388a1b7fc533a81c03b4a81c6e5f3e5688f (diff) | |
download | linux-aecb66b2b01a87b4b723267b9193c8f00d661c1f.tar.xz |
qedr: remove pointless NULL check in qedr_post_send()
Remove pointless NULL check for 'wr' in qedr_post_send().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/qedr/verbs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 18e2f60a9d4f..12f35150f32f 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -2986,11 +2986,6 @@ int qedr_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, return -EINVAL; } - if (!wr) { - DP_ERR(dev, "Got an empty post send.\n"); - return -EINVAL; - } - while (wr) { rc = __qedr_post_send(ibqp, wr, bad_wr); if (rc) |