Received: by 10.223.185.116 with SMTP id b49csp3168135wrg; Mon, 5 Mar 2018 15:37:59 -0800 (PST) X-Google-Smtp-Source: AG47ELsggBgSK9pfgJc6ToYy3VgVvyZIBR4d9/i2FPoSBwImOMZD2BF0sYpEtH8Ya6+767P1Wxns X-Received: by 2002:a17:902:b943:: with SMTP id h3-v6mr9361140pls.45.1520293079828; Mon, 05 Mar 2018 15:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520293079; cv=none; d=google.com; s=arc-20160816; b=UJ5d3TMJcVc8JdE+gJwte5oUyjg9dN66wXQEdI0nV2nJNvRth4lBRDXFrjIuRpPHfT aTtGt+n+odGJvCrqdXASZUsT2NZFbUN4ohLSdiF74TxenE3nixS0nWkWQME+GnzdIlIB v/Qo/vatIRBC5d2rr0gfzbaLbFJ5p+UYRvx5+8lzyiuO3TK5auFEa4AxulwgTL6ET7ay SnD7uoeeO4cliDrZwmGDlt2d+mwxe5KPR8Qcmt6aO9/YAEPqdRT9daeSEER2SFA/GdH+ uSbUN+KP80THGytq2afEufhkSgKYnRNRzcSmeizjcyJqzR5HueTo/aVJ8mwn92hOCg37 8ADw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=PPZE3deMd7xDNZ47ph2VwF7BxSkD5rN/+KMwAnhffu4=; b=L0jTzmao4fz+1U2QvU8zFLIjNlu/cFnbdEVIJ14nghfX7wQpgg/nG47UdmxSOSoiUx KDeDkbhWczOVswDiSw90LRwkNbP8e3gGw3WQi31NK0QJlmjl1WefUExaIW68wFqkhmp/ pPmlkFDynWuoXK+1jfze7HspteWhM+B0xCO1DrdaFxuhrFzmMlmYgTNlRI1id6wG8tVj C9WUzZDnEmLaLggDa4I6BB8Ima39grMV4jphj4KNk3sOenv/1QqvlZLcreIuveDyscl3 eM4Ap5TQtLmNguhKCacKPXT/JqpeSKdJfcQoli4AYJ/hLiWL/OB1VmmL+oMvEsPRWpsW WK+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q127si6027903pfb.414.2018.03.05.15.37.44; Mon, 05 Mar 2018 15:37:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932697AbeCEXgv (ORCPT + 99 others); Mon, 5 Mar 2018 18:36:51 -0500 Received: from gateway33.websitewelcome.com ([192.185.146.130]:47585 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932470AbeCEXgt (ORCPT ); Mon, 5 Mar 2018 18:36:49 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 772E7F00B39 for ; Mon, 5 Mar 2018 17:36:48 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id szeye2H6CJfj2szeyeYqas; Mon, 05 Mar 2018 17:36:48 -0600 Received: from [189.175.117.58] (port=46046 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1eszex-003Vtb-Sn; Mon, 05 Mar 2018 17:36:47 -0600 Date: Mon, 5 Mar 2018 17:36:47 -0600 From: "Gustavo A. R. Silva" To: Selvin Xavier , Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna , Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] RDMA/bnxt_re/qplib_sp: Use true and false for boolean values Message-ID: <20180305233647.GA30787@embeddedgus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.175.117.58 X-Source-L: No X-Exim-ID: 1eszex-003Vtb-Sn X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.175.117.58]:46046 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.c b/drivers/infiniband/hw/bnxt_re/qplib_sp.c index ee98e5e..2f3f32ea 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.c @@ -154,7 +154,7 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw, attr->tqm_alloc_reqs[i * 4 + 3] = *(++tqm_alloc); } - attr->is_atomic = 0; + attr->is_atomic = false; bail: bnxt_qplib_rcfw_free_sbuf(rcfw, sbuf); return rc; -- 2.7.4