From: Wei Yongjun Date: Wed, 2 Nov 2016 13:11:32 +0000 (+0000) Subject: qedr: remove pointless NULL check in qedr_post_send() X-Git-Tag: v4.14-rc1~1791^2~16^3~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aecb66b2b01a87b4b723267b9193c8f00d661c1f;p=platform%2Fkernel%2Flinux-rpi.git qedr: remove pointless NULL check in qedr_post_send() Remove pointless NULL check for 'wr' in qedr_post_send(). Signed-off-by: Wei Yongjun Acked-by: Ram Amrani Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 18e2f60..12f3515 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)