diff for duplicates of <20170309115016.GF3307@yuval-lap> diff --git a/a/1.txt b/N1/1.txt index fd05e08..f1d6833 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -71,7 +71,7 @@ On Wed, Mar 08, 2017 at 02:32:15PM +0100, SF Markus Elfring wrote: > 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; @@ -80,17 +80,17 @@ On Wed, Mar 08, 2017 at 02:32:15PM +0100, SF Markus Elfring wrote: > - 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 1208a06..8e4b9e9 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\0dddca366-47ad-9319-4933-e1a07578018e@users.sourceforge.net\0" "From\0Yuval Shaia <yuval.shaia@oracle.com>\0" "Subject\0Re: [PATCH 25/26] IB/ocrdma: Delete unnecessary braces\0" - "Date\0Thu, 09 Mar 2017 11:50:16 +0000\0" + "Date\0Thu, 9 Mar 2017 13:50:16 +0200\0" "To\0SF Markus Elfring <elfring@users.sourceforge.net>\0" "Cc\0linux-rdma@vger.kernel.org" Devesh Sharma <devesh.sharma@avagotech.com> @@ -87,7 +87,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" @@ -96,17 +96,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" @@ -132,4 +132,4 @@ "> the body of a message to majordomo@vger.kernel.org\n" > More majordomo info at http://vger.kernel.org/majordomo-info.html -7f325b531ef40bb35925ba873421a01dc89f405dd3445b18900cc65ceac5648d +d97870027b7dff11dd67d53f04ec1ac477686475d4014566c7d9a92f0ff6df54
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.