Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3602012ybe; Sun, 15 Sep 2019 19:59:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKX3miXwzJ3Gs+Yb3DIbZvw/7TZDVbyvT0RJtiiEN4vmY/jXMvCenlr4DynczXEB70F/Tr X-Received: by 2002:a17:906:80d9:: with SMTP id a25mr8593049ejx.222.1568602745497; Sun, 15 Sep 2019 19:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568602745; cv=none; d=google.com; s=arc-20160816; b=yjFBhmwRbpmR8ZxV+N4Dv/N05a1AxiM9RRiRQ27eabAVDuVU9coNP/J2OaYA/z7DE+ e2gE7LAQDfGtz6KA6NMjTpvois8bKqXMXLg3dTdiNKaveXgJBK/rKCnHQsMBcmOvQkBX GaPtzv2XaCmHxJSmkrKiz9tbd1ag9BMkPMsenqK/CkIACz4cO8xYVmpJxBLe75ywied1 ul3XbDy/jx3o734hw2Fo3NGYqjvX6pM9yrrSxQMr/29k4eCfsMDzMrxaB5ZuJuekad6R Pn/DZdnd0Zz+GPY0PF3YCMGopsNGzvZO2DTBjOrvE7RYcrHIk8qCO1E96Z10WVdHiZ5O 0rqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:authenticated-by; bh=SIfXsSeero86QU6J3Fjy+dNUf3tGo4O4JIxMUVa0OrI=; b=D05otlHyDV2umelqQOld603fa14RktBSo28v6jYpKQeKcREt3jyN4OohTQvpYT4ltq hX2e4HOZ+nCfPmslrF/CpOCsKIAEsCUUC3JbXN5Ga/E5SQx92sblrQtdnYe9uOOymK4q 3Sd1Zf0ywHR2HOE+9D5d+OZtSIOcQXmD3g6A+MLfHZM7AiFdUTt1GudL8WdS9DGLt+Yp vlR7hODBS9NQDcZf9clAIalUNWChI3xis6zcved4WPaxaAb9ZzbjrxJxmvHaD3NiykUT bY+pobJ61lJT0VGFmcn5VQYciCuuqVKN7L6QY4ewHWPw81qSFl6s5LjcKBGDBFP4ANdo Nomg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 k13si1331447edq.436.2019.09.15.19.58.30; Sun, 15 Sep 2019 19:59:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726880AbfIPClu (ORCPT + 99 others); Sun, 15 Sep 2019 22:41:50 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:40400 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbfIPClu (ORCPT ); Sun, 15 Sep 2019 22:41:50 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x8G2fhbW019424, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCASV01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x8G2fhbW019424 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 16 Sep 2019 10:41:44 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.468.0; Mon, 16 Sep 2019 10:41:43 +0800 From: To: CC: , Subject: [PATCH] rtw88: 8822c: fix boolreturn.cocci warnings Date: Mon, 16 Sep 2019 10:41:40 +0800 Message-ID: <1568601700-12162-1-git-send-email-yhchuang@realtek.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang drivers/net/wireless/realtek/rtw88/rtw8822c.c:2606:9-10: WARNING: return of 0/1 in function 'rtw8822c_dpk_coef_iq_check' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci Fixes: 5227c2ee453d ("rtw88: 8822c: add SW DPK support") Reported-by: kbuild test robot Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/rtw8822c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c index c2f6cd7..084c18d 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c @@ -2603,9 +2603,9 @@ static bool rtw8822c_dpk_coef_iq_check(struct rtw_dev *rtwdev, { if (coef_i == 0x1000 || coef_i == 0x0fff || coef_q == 0x1000 || coef_q == 0x0fff) - return 1; - else - return 0; + return true; + + return false; } static u32 rtw8822c_dpk_coef_transfer(struct rtw_dev *rtwdev) -- 2.7.4