diff for duplicates of <dddca366-47ad-9319-4933-e1a07578018e@users.sourceforge.net> diff --git a/a/1.txt b/N1/1.txt index bd1ba49..0055a6e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -70,7 +70,7 @@ index d3cb8e2f099f..bfd86fd08847 100644 bool expand = false; ibwc->wc_flags = 0; -- if (qp->qp_type = IB_QPT_UD || qp->qp_type = IB_QPT_GSI) { +- if (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI) { - status = (le32_to_cpu(cqe->flags_status_srcqpn) & - OCRDMA_CQE_UD_STATUS_MASK) >> - OCRDMA_CQE_UD_STATUS_SHIFT; @@ -79,17 +79,17 @@ index d3cb8e2f099f..bfd86fd08847 100644 - OCRDMA_CQE_STATUS_MASK) >> OCRDMA_CQE_STATUS_SHIFT; - } - -+ status = (qp->qp_type = IB_QPT_UD || qp->qp_type = IB_QPT_GSI) ++ status = (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI) + ? ((le32_to_cpu(cqe->flags_status_srcqpn) & + OCRDMA_CQE_UD_STATUS_MASK) >> OCRDMA_CQE_UD_STATUS_SHIFT) + : ((le32_to_cpu(cqe->flags_status_srcqpn) & + OCRDMA_CQE_STATUS_MASK) >> OCRDMA_CQE_STATUS_SHIFT); - if (status = OCRDMA_CQE_SUCCESS) { + if (status == OCRDMA_CQE_SUCCESS) { *polled = true; ocrdma_poll_success_rcqe(qp, cqe, ibwc); @@ -2885,13 +2880,9 @@ static int ocrdma_poll_hwcq(struct ocrdma_cq *cq, int num_entries, qp = dev->qp_tbl[qpn]; - BUG_ON(qp = NULL); + BUG_ON(qp == NULL); - if (is_cqe_for_sq(cqe)) { - expand = ocrdma_poll_scqe(qp, cqe, ibwc, &polled, diff --git a/a/content_digest b/N1/content_digest index 61a704f..9263404 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\0fc421509-4069-da8a-b308-60b49ea91ada@users.sourceforge.net\0" "From\0SF Markus Elfring <elfring@users.sourceforge.net>\0" "Subject\0[PATCH 25/26] IB/ocrdma: Delete unnecessary braces\0" - "Date\0Wed, 08 Mar 2017 13:32:15 +0000\0" + "Date\0Wed, 8 Mar 2017 14:32:15 +0100\0" "To\0linux-rdma@vger.kernel.org" Devesh Sharma <devesh.sharma@avagotech.com> Doug Ledford <dledford@redhat.com> @@ -84,7 +84,7 @@ " \tbool expand = false;\n" " \n" " \tibwc->wc_flags = 0;\n" - "-\tif (qp->qp_type = IB_QPT_UD || qp->qp_type = IB_QPT_GSI) {\n" + "-\tif (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI) {\n" "-\t\tstatus = (le32_to_cpu(cqe->flags_status_srcqpn) &\n" "-\t\t\t\t\tOCRDMA_CQE_UD_STATUS_MASK) >>\n" "-\t\t\t\t\tOCRDMA_CQE_UD_STATUS_SHIFT;\n" @@ -93,17 +93,17 @@ "-\t\t\t OCRDMA_CQE_STATUS_MASK) >> OCRDMA_CQE_STATUS_SHIFT;\n" "-\t}\n" "-\n" - "+\tstatus = (qp->qp_type = IB_QPT_UD || qp->qp_type = IB_QPT_GSI)\n" + "+\tstatus = (qp->qp_type == IB_QPT_UD || qp->qp_type == IB_QPT_GSI)\n" "+\t\t ? ((le32_to_cpu(cqe->flags_status_srcqpn) &\n" "+\t\t OCRDMA_CQE_UD_STATUS_MASK) >> OCRDMA_CQE_UD_STATUS_SHIFT)\n" "+\t\t : ((le32_to_cpu(cqe->flags_status_srcqpn) &\n" "+\t\t OCRDMA_CQE_STATUS_MASK) >> OCRDMA_CQE_STATUS_SHIFT);\n" - " \tif (status = OCRDMA_CQE_SUCCESS) {\n" + " \tif (status == OCRDMA_CQE_SUCCESS) {\n" " \t\t*polled = true;\n" " \t\tocrdma_poll_success_rcqe(qp, cqe, ibwc);\n" "@@ -2885,13 +2880,9 @@ static int ocrdma_poll_hwcq(struct ocrdma_cq *cq, int num_entries,\n" " \t\tqp = dev->qp_tbl[qpn];\n" - " \t\tBUG_ON(qp = NULL);\n" + " \t\tBUG_ON(qp == NULL);\n" " \n" "-\t\tif (is_cqe_for_sq(cqe)) {\n" "-\t\t\texpand = ocrdma_poll_scqe(qp, cqe, ibwc, &polled,\n" @@ -121,4 +121,4 @@ "-- \n" 2.12.0 -0e9b7d9bf8c9f116aba2cf29e618dafafd5db5dd555c2f78cdcdd0914437bbf3 +84abd28e7d3fdb6abf938fe9e740c34537467ba728caa0cfcf63033ffbb640eb
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.