diff for duplicates of <580DFEB0.20100@huawei.com> diff --git a/a/1.txt b/N1/1.txt index d89519a..2d08e1e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -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; diff --git a/a/content_digest b/N1/content_digest index 3606fc2..2c529e9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020161014073441.GB15238@mwanda\0" "From\0oulijun <oulijun@huawei.com>\0" "Subject\0Re: [patch 2/2] IB/hns: Fix some error handling in hns_roce_v1_query_qp()\0" - "Date\0Mon, 24 Oct 2016 12:29:36 +0000\0" + "Date\0Mon, 24 Oct 2016 20:29:36 +0800\0" "To\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Cc\0Wei Hu(Xavier) <xavier.huwei@huawei.com>" Doug Ledford <dledford@redhat.com> @@ -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" @@ -61,4 +61,4 @@ "thanks\n" Lijun Ou -0e600cbff75c8f04fce25916b37a955005e7918ca1d09ce13f6aa111265282fb +c348a82b7c82677c4bb72fb3af14d77b07969d0f6a208a2109095e6f0734f82b
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.