lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.2004151614180.2381@hadrien>
Date:   Wed, 15 Apr 2020 16:15:48 +0200 (CEST)
From:   Julia Lawall <julia.lawall@...ia.fr>
To:     Shiraz Saleem <shiraz.saleem@...el.com>
cc:     Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
        Doug Ledford <dledford@...hat.com>,
        Jason Gunthorpe <jgg@...pe.ca>,
        Mustafa Ismail <mustafa.ismail@...el.com>,
        linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
        Intel Wired LAN <intel-wired-lan@...ts.osuosl.org>,
        kbuild-all@...ts.01.org
Subject: [PATCH] RDMA/irdma: fix boolconv.cocci warnings

From: kbuild test robot <lkp@...el.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@...el.com>
Signed-off-by: kbuild test robot <lkp@...el.com>
Signed-off-by: Julia Lawall <julia.lawall@...ia.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];

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ