diff for duplicates of <20161014073441.GB15238@mwanda> diff --git a/a/1.txt b/N1/1.txt index c8d54b5..4dcfe83 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,7 +1,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 @@ -11,8 +11,12 @@ index 58b150e..280abac 100644 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; +-- +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 914ceb8..d20219b 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ - "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" + "From\0Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>\0" "Subject\0[patch 2/2] IB/hns: Fix some error handling in hns_roce_v1_query_qp()\0" - "Date\0Fri, 14 Oct 2016 07:34:42 +0000\0" + "Date\0Fri, 14 Oct 2016 10:34:42 +0300\0" "To\0Lijun Ou <oulijun-hv44wF8Li93QT0dZR+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> @@ -13,7 +13,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" @@ -23,10 +23,14 @@ " \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;" + " \t\tgoto out;\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 -927b89a6bfbf36131501c89b7cdc7651dccae35486c84bc34bd5fefc38e49bd8 +f19556c771bea5b688d00d7fb9c1fd0e353c438cc17440cc6874b3c4f42dc4e6
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.