linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: Shiraz Saleem <shiraz.saleem@intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
	Doug Ledford <dledford@redhat.com>,
	Jason Gunthorpe <jgg@ziepe.ca>,
	Mustafa Ismail <mustafa.ismail@intel.com>,
	linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
	Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
	kbuild-all@lists.01.org
Subject: [PATCH] RDMA/irdma: fix boolconv.cocci warnings
Date: Wed, 15 Apr 2020 16:15:48 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.21.2004151614180.2381@hadrien> (raw)

From: kbuild test robot <lkp@intel.com>

Remove unneeded conversion to bool

Generated by: scripts/coccinelle/misc/boolconv.cocci

Fixes: f473122f41f6 ("RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw")
CC: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git rdma
head:   4d75d9adac8df983bc733b92711683a7cd7ddd40
commit: f473122f41f69394e29a834fbfcd569dcdd1d879 [24/25] RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago


 irdma_if.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/infiniband/hw/irdma/irdma_if.c
+++ b/drivers/infiniband/hw/irdma/irdma_if.c
@@ -135,7 +135,7 @@ static void irdma_event_handler(struct i

 		l2params.tc_changed = true;
 		dev_dbg(rfdev_to_dev(&iwdev->rf->sc_dev), "CLNT: TC Change\n");
-		iwdev->dcb = event->info.port_qos.num_tc > 1 ? true : false;
+		iwdev->dcb = event->info.port_qos.num_tc > 1;

 		for (i = 0; i < IIDC_MAX_USER_PRIORITY; ++i)
 			l2params.up2tc[i] = event->info.port_qos.up2tc[i];

                 reply	other threads:[~2020-04-15 14:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=alpine.DEB.2.21.2004151614180.2381@hadrien \
    --to=julia.lawall@inria.fr \
    --cc=dledford@redhat.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=jgg@ziepe.ca \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mustafa.ismail@intel.com \
    --cc=shiraz.saleem@intel.com \
    /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).