Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1725409pxb; Thu, 4 Feb 2021 22:59:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU6R+uukEclcdmHogg16tOrG7WX3Zti5P5ic5FIUd5ByINxMqo2QBTJWbTJM/+C7iBICNq X-Received: by 2002:a17:906:d922:: with SMTP id rn2mr2835980ejb.414.1612508350954; Thu, 04 Feb 2021 22:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612508350; cv=none; d=google.com; s=arc-20160816; b=UqmGIWU0iAZ84yM3aCD27gOiT8rlyGGXPq5Qt/UGzCpM8VWLuSjMuIMCWZ1pkN1JGr 1HTvfyU190pThGLgo5udnQf56zI4R24PiDtnk7DFTegP2uvh5Ec+o0QPu7a7sueWcPS2 angCWip4hZGM3mAEa2WjNJ23YohglaPWSnJenpEXW8hlunTpuJTrbRsJKv54eZva/Hxv peRTV6tnUVG+tgqua48Yk1yPNibg6aP/h39wdfB+yMH1E1ZsJ4/vpJBF7ftMXxGdRwcu cxLX/1ZoEsARTMsRxq4Qid86MJV9ixllZ4pThlpFWz6loHUJkkUcdph5kRUPxfjNRR5h fe4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=yFWmoHhLhFmRa5z3j6Vp3s/0/7mJAJNly9uO2Aipltc=; b=x+OURMVqa7g5RdxMtFzwHSotZFt6rGu0T/HM9nqM71fYJwigOdjqN0Le2JEPW2IiGd 2BSmC07wZXI2E2my2y4YI2IAGex33L+TXaLzhNBc76MaBLCvfYpdmK+VLrVZoEcJ5BIu bsKl4MCLhdyPbgKCKBnQ6bP3IxlcKDikP4hFJExlEGNNPfoGHLoGuDBkH/uR/JqvZSSg qifN7+bB43gqYqYp6fNCwuBGdgbjrUcHpwEfQNW7CT62wmazu9o4ARzzyyRt8n590DDq /2ENANvSxeeheoyr23Iktwdlz7tAAGqzjTCmDv8ef/C1vscpPyvdbs0AFESiL9OIweLZ wLLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e22si5223378edu.9.2021.02.04.22.58.44; Thu, 04 Feb 2021 22:59:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbhBEG5q (ORCPT + 99 others); Fri, 5 Feb 2021 01:57:46 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:42143 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231328AbhBEG5i (ORCPT ); Fri, 5 Feb 2021 01:57:38 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UNwO2eU_1612508200; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNwO2eU_1612508200) by smtp.aliyun-inc.com(127.0.0.1); Fri, 05 Feb 2021 14:56:45 +0800 From: Jiapeng Chong To: m@bues.ch Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ssb: Use true and false for bool variable Date: Fri, 5 Feb 2021 14:56:39 +0800 Message-Id: <1612508199-92282-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warnings: ./include/linux/ssb/ssb_driver_gige.h:89:8-9: WARNING: return of 0/1 in function 'ssb_gige_one_dma_at_once' with return type bool. ./include/linux/ssb/ssb_driver_gige.h:79:8-9: WARNING: return of 0/1 in function 'ssb_gige_have_roboswitch' with return type bool. ./include/linux/ssb/ssb_driver_gige.h:182:8-9: WARNING: return of 0/1 in function 'ssb_gige_must_flush_posted_writes' with return type bool. ./include/linux/ssb/ssb_driver_gige.h:178:8-9: WARNING: return of 0/1 in function 'ssb_gige_one_dma_at_once' with return type bool. ./include/linux/ssb/ssb_driver_gige.h:174:8-9: WARNING: return of 0/1 in function 'ssb_gige_have_roboswitch' with return type bool. ./include/linux/ssb/ssb_driver_gige.h:170:8-9: WARNING: return of 0/1 in function 'ssb_gige_is_rgmii' with return type bool. ./include/linux/ssb/ssb_driver_gige.h:162:8-9: WARNING: return of 0/1 in function 'pdev_is_ssb_gige_core' with return type bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- include/linux/ssb/ssb_driver_gige.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/ssb/ssb_driver_gige.h b/include/linux/ssb/ssb_driver_gige.h index 31593b3..15ba0df 100644 --- a/include/linux/ssb/ssb_driver_gige.h +++ b/include/linux/ssb/ssb_driver_gige.h @@ -76,7 +76,7 @@ static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) if (dev) return !!(dev->dev->bus->sprom.boardflags_lo & SSB_GIGE_BFL_ROBOSWITCH); - return 0; + return false; } /* Returns whether we can only do one DMA at once. */ @@ -86,7 +86,7 @@ static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) if (dev) return ((dev->dev->bus->chip_id == 0x4785) && (dev->dev->bus->chip_rev < 2)); - return 0; + return false; } /* Returns whether we must flush posted writes. */ @@ -159,7 +159,7 @@ static inline void ssb_gige_exit(void) static inline bool pdev_is_ssb_gige_core(struct pci_dev *pdev) { - return 0; + return false; } static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) { @@ -167,19 +167,19 @@ static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) } static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) { - return 0; + return false; } static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) { - return 0; + return false; } static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) { - return 0; + return false; } static inline bool ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) { - return 0; + return false; } static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) { -- 1.8.3.1