diff for duplicates of <580097FE.3070102@huawei.com> diff --git a/a/1.txt b/N1/1.txt index 9f4c18f..d37c7e1 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,7 +2,7 @@ > to_ib_qp_state() returns IB_QPS_ERR (6) on error, it doesn't return -1. > > Fixes: 9a4435375cd1 ('IB/hns: Add driver files for hns RoCE driver') -> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> +> Signed-off-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> > > diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c > index 58b150e..280abac 100644 @@ -12,8 +12,8 @@ > QP_CONTEXT_QPC_BYTES_144_QP_STATE_M, > QP_CONTEXT_QPC_BYTES_144_QP_STATE_S); > tmp_qp_state = (int)to_ib_qp_state((enum hns_roce_qp_state)state); -> - if (tmp_qp_state = -1) { -> + if (tmp_qp_state = IB_QPS_ERR) { +> - if (tmp_qp_state == -1) { +> + if (tmp_qp_state == IB_QPS_ERR) { > dev_err(dev, "to_ib_qp_state error\n"); > ret = -EINVAL; > goto out; @@ -24,3 +24,8 @@ Hi, Dan Carpenter This is good for me. Thanks + +-- +To unsubscribe from this list: send the line "unsubscribe linux-rdma" in +the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org +More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/a/content_digest b/N1/content_digest index 48b3be4..14512aa 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020161014073441.GB15238@mwanda\0" - "From\0oulijun <oulijun@huawei.com>\0" + "From\0oulijun <oulijun-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>\0" "Subject\0Re: [patch 2/2] IB/hns: Fix some error handling in hns_roce_v1_query_qp()\0" - "Date\0Fri, 14 Oct 2016 08:31:58 +0000\0" + "Date\0Fri, 14 Oct 2016 16:31:58 +0800\0" "To\0Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>\0" "Cc\0Wei Hu(Xavier) <xavier.huwei-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>" Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @@ -15,7 +15,7 @@ "> to_ib_qp_state() returns IB_QPS_ERR (6) on error, it doesn't return -1.\n" "> \n" "> Fixes: 9a4435375cd1 ('IB/hns: Add driver files for hns RoCE driver')\n" - "> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>\n" + "> Signed-off-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>\n" "> \n" "> diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c\n" "> index 58b150e..280abac 100644\n" @@ -25,8 +25,8 @@ "> \t\t\t QP_CONTEXT_QPC_BYTES_144_QP_STATE_M,\n" "> \t\t\t QP_CONTEXT_QPC_BYTES_144_QP_STATE_S);\n" "> \ttmp_qp_state = (int)to_ib_qp_state((enum hns_roce_qp_state)state);\n" - "> -\tif (tmp_qp_state = -1) {\n" - "> +\tif (tmp_qp_state = IB_QPS_ERR) {\n" + "> -\tif (tmp_qp_state == -1) {\n" + "> +\tif (tmp_qp_state == IB_QPS_ERR) {\n" "> \t\tdev_err(dev, \"to_ib_qp_state error\\n\");\n" "> \t\tret = -EINVAL;\n" "> \t\tgoto out;\n" @@ -36,6 +36,11 @@ "Hi, Dan Carpenter\n" " This is good for me.\n" "\n" - Thanks + "Thanks\n" + "\n" + "--\n" + "To unsubscribe from this list: send the line \"unsubscribe linux-rdma\" in\n" + "the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org\n" + More majordomo info at http://vger.kernel.org/majordomo-info.html -353ba1a2e5e3c5658d24cf474f4d49d8087b161fbd6e7975a5abf599d1c20161 +d1f86b494ecc7841efd1cfacf64cf9a4b6202a917b3b070c5c1a4baa5a6627d9
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.