diff options
author | Aditya Pakki <pakki001@umn.edu> | 2018-12-26 13:56:22 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-01-02 18:04:24 -0500 |
commit | 94edd87a1c59f3efa6fdf4e98d6d492e6cec6173 (patch) | |
tree | c0786eea557f05e84e9e42e927918c15fcacc9b6 | |
parent | 2fb458953a892020f36a323f386d8c7009f10777 (diff) |
infiniband: bnxt_re: qplib: Check the return value of send_message
In bnxt_qplib_map_tc2cos(), bnxt_qplib_rcfw_send_message() can return an
error value but it is lost. Propagate this error to the callers.
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Acked-By: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.c b/drivers/infiniband/hw/bnxt_re/qplib_sp.c index be03b5738f71..efa0f2949dc7 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.c | |||
@@ -780,9 +780,8 @@ int bnxt_qplib_map_tc2cos(struct bnxt_qplib_res *res, u16 *cids) | |||
780 | req.cos0 = cpu_to_le16(cids[0]); | 780 | req.cos0 = cpu_to_le16(cids[0]); |
781 | req.cos1 = cpu_to_le16(cids[1]); | 781 | req.cos1 = cpu_to_le16(cids[1]); |
782 | 782 | ||
783 | bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, NULL, | 783 | return bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, |
784 | 0); | 784 | NULL, 0); |
785 | return 0; | ||
786 | } | 785 | } |
787 | 786 | ||
788 | int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, | 787 | int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, |