From patchwork Wed Apr 15 14:15:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 11491337 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A283614B4 for ; Wed, 15 Apr 2020 14:16:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 942D3208E4 for ; Wed, 15 Apr 2020 14:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2636559AbgDOOPz (ORCPT ); Wed, 15 Apr 2020 10:15:55 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:2691 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2636553AbgDOOPw (ORCPT ); Wed, 15 Apr 2020 10:15:52 -0400 X-IronPort-AV: E=Sophos;i="5.72,387,1580770800"; d="scan'208";a="345994444" Received: from abo-173-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 16:15:48 +0200 Date: Wed, 15 Apr 2020 16:15:48 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Shiraz Saleem cc: Jeff Kirsher , Doug Ledford , Jason Gunthorpe , Mustafa Ismail , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Intel Wired LAN , kbuild-all@lists.01.org Subject: [PATCH] RDMA/irdma: fix boolconv.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: kbuild test robot 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 Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- 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];