linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: zhengbin <zhengbin13@huawei.com>
To: <bmt@zurich.ibm.com>, <dledford@redhat.com>, <jgg@ziepe.ca>,
	<linux-rdma@vger.kernel.org>
Cc: <zhengbin13@huawei.com>
Subject: [PATCH 2/5] IB/hfi1: use true,false for bool variable
Date: Tue, 24 Dec 2019 16:40:09 +0800	[thread overview]
Message-ID: <1577176812-2238-3-git-send-email-zhengbin13@huawei.com> (raw)
In-Reply-To: <1577176812-2238-1-git-send-email-zhengbin13@huawei.com>

Fixes coccicheck warning:

drivers/infiniband/hw/hfi1/rc.c:2602:1-8: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 drivers/infiniband/hw/hfi1/rc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/hfi1/rc.c b/drivers/infiniband/hw/hfi1/rc.c
index 1a3c647..f1734e5 100644
--- a/drivers/infiniband/hw/hfi1/rc.c
+++ b/drivers/infiniband/hw/hfi1/rc.c
@@ -2599,7 +2599,7 @@ static noinline int rc_rcv_error(struct ib_other_headers *ohdr, void *data,
 	 * to be sent before sending this one.
 	 */
 	e = NULL;
-	old_req = 1;
+	old_req = true;
 	ibp->rvp.n_rc_dupreq++;

 	spin_lock_irqsave(&qp->s_lock, flags);
--
2.7.4


  parent reply	other threads:[~2019-12-24  8:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-24  8:40 [PATCH 0/5] RDMA: use true,false for bool variable zhengbin
2019-12-24  8:40 ` [PATCH 1/5] RDMA/siw: " zhengbin
2019-12-24  9:50   ` Leon Romanovsky
2019-12-24  8:40 ` zhengbin [this message]
2019-12-24  9:48   ` [PATCH 2/5] IB/hfi1: " Leon Romanovsky
2019-12-24  8:40 ` [PATCH 3/5] IB/iser: " zhengbin
2019-12-24  8:40 ` [PATCH 4/5] RDMA/mlx4: " zhengbin
2019-12-24  9:48   ` Leon Romanovsky
2019-12-24  8:40 ` [PATCH 5/5] RDMA/mlx5: " zhengbin
2019-12-24  9:48   ` Leon Romanovsky
2020-01-03 23:15 ` [PATCH 0/5] RDMA: " Jason Gunthorpe
2020-01-04 17:25 ` Bernard Metzler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1577176812-2238-3-git-send-email-zhengbin13@huawei.com \
    --to=zhengbin13@huawei.com \
    --cc=bmt@zurich.ibm.com \
    --cc=dledford@redhat.com \
    --cc=jgg@ziepe.ca \
    --cc=linux-rdma@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).