From patchwork Fri Aug 20 02:41:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lv Ruyi X-Patchwork-Id: 500844 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57C51C4338F for ; Fri, 20 Aug 2021 02:41:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3645160FC1 for ; Fri, 20 Aug 2021 02:41:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237843AbhHTCmP (ORCPT ); Thu, 19 Aug 2021 22:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237743AbhHTCmO (ORCPT ); Thu, 19 Aug 2021 22:42:14 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B033C061575; Thu, 19 Aug 2021 19:41:37 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id d9so6348492qty.12; Thu, 19 Aug 2021 19:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=akxppNyvMUVOj38GQ4Wx+WMqn0jMaFXZloIDjRROmGQ=; b=EUWolll8jwQmPwG9g8Rv7x8uSp+vnUXFDAOf6ozcbIKh2cFFzNtKCinnb3CyOQY85Y Sj809DrgSN6OF7+XHPwTezdYOs6OwObsEI0Vps2kyjEIlm0lowLGqG8QYn3AwPjwYNSr Dnmjz0x5Pi0fvGUyA+/OgLxvEfC1NMC7S3bPtAl4YlEAVsh+/Jaz71Cly/GHSA7MCMD2 6XB9ZAA8fDqw92qV0m3Pp9+8OrAY1FALXPm6YauSLVXY798JJXHD8pTX1byGrkcFrz0h eGLQFVqknP1/yDd+Pj0ayWI28z1WqkhM8SZcTNyGrDRisHLWmCy2ZYsoTKVmCiSTs6js pE0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=akxppNyvMUVOj38GQ4Wx+WMqn0jMaFXZloIDjRROmGQ=; b=CEeoeIyaXKVaGHKKF8bZ2ubDgsreFDMIKEcdzymalY1LxmTu0u5eNExTR0gOdGJD1U z3HoRvc6BdII//FiOEoV1316GbDKr/8O+94XJAAGB9uFHwfcArZ+O0nOh73DOhmjz/Be DskzGyyQPjldLOGu3/Q93qUWO7xEEpJrx9mf7n2XcVyniTpBaeLVuMRKsDj0HSvLEcr8 SDat+Yz2wS8SYvfABr81Rp9hucbjOi5v6b2HWjUA+aEhyRlvPAdqxshvYTUeAsN2qWdG kcO2yUSPTXoS+aqM0OR3TPCbf99gHy1B2QN0yZaq4m2sJy/4n/AwG+tx3wMqYNk/JjhS I0Yg== X-Gm-Message-State: AOAM532t2eYnSXY4sS8QH180IIBwNm7f1O5oBwcDUWBrokSM6EFlBgNV lt/YfRJpIl8wr079dpqVYcw= X-Google-Smtp-Source: ABdhPJw55p0SderdnAvRWE7UB9+ez6UViRUo1ZKxTA36IVrUYYRcwg3vnE6JRTkGM9yP8EmG3j0Rrg== X-Received: by 2002:ac8:7155:: with SMTP id h21mr15656644qtp.231.1629427296579; Thu, 19 Aug 2021 19:41:36 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id j127sm2500131qkf.20.2021.08.19.19.41.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 19:41:36 -0700 (PDT) From: jing yangyang X-Google-Original-From: jing yangyang To: Felix Fietkau Cc: Lorenzo Bianconi , Ryder Lee , Kalle Valo , "David S . Miller" , Jakub Kicinski , Matthias Brugger , Sean Wang , Colin Ian King , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: [PATCH linux-next] net:wireless:mt76: fix boolreturn.cocci warnings Date: Thu, 19 Aug 2021 19:41:17 -0700 Message-Id: <20210820024117.11688-1-jing.yangyang@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org ./drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c:172:8-9:WARNING: return of 0/1 in function 'mt7663_usb_sdio_tx_status_data' 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 Reported-by: Zeal Robot Signed-off-by: jing yangyang --- drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c b/drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c index 996d48c..bd2939e 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c @@ -169,7 +169,7 @@ bool mt7663_usb_sdio_tx_status_data(struct mt76_dev *mdev, u8 *update) mt7615_mac_sta_poll(dev); mt7615_mutex_release(dev); - return 0; + return false; } EXPORT_SYMBOL_GPL(mt7663_usb_sdio_tx_status_data);