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: 1271198 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=inria.fr Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 492PXb4mR3z9sSM for ; Thu, 16 Apr 2020 00:15:58 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B987F85F58; Wed, 15 Apr 2020 14:15:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XgbwZfVTxwJH; Wed, 15 Apr 2020 14:15:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0B52785EF1; Wed, 15 Apr 2020 14:15:55 +0000 (UTC) X-Original-To: intel-wired-lan@lists.osuosl.org Delivered-To: intel-wired-lan@lists.osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 71FF91BF372 for ; Wed, 15 Apr 2020 14:15:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6A60886460 for ; Wed, 15 Apr 2020 14:15:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L-fzUTXUsZlX for ; Wed, 15 Apr 2020 14:15:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by whitealder.osuosl.org (Postfix) with ESMTPS id DC42986430 for ; Wed, 15 Apr 2020 14:15:51 +0000 (UTC) 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 Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Subject: [Intel-wired-lan] [PATCH] RDMA/irdma: fix boolconv.cocci warnings X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mustafa Ismail , kbuild-all@lists.01.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Gunthorpe , Doug Ledford , Intel Wired LAN Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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];