Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp767385iob; Wed, 4 May 2022 07:36:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU3GDMPYrNqHxqRboYmUufz9wEevF2Jba2IDu9cnVr+JdnS2PbgJyVCZ+NxjmIbWaPHvVR X-Received: by 2002:a17:906:9b94:b0:6f3:fd8d:8a00 with SMTP id dd20-20020a1709069b9400b006f3fd8d8a00mr20343648ejc.90.1651674973441; Wed, 04 May 2022 07:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651674973; cv=none; d=google.com; s=arc-20160816; b=LgR+QMoZkNlZoo8BUnivjXpJD1Cj5KQ5+ZwcsBk8atma2J007Jeb5aJtFPPtMwtu8+ FTfMtw7gBI07of5FqIRnAIbuJMH2lF5hoenLmcxbzFr1teXrdQaajSx5e72WY6K52R4q 4/gmosIQuealczgRVijn4XaxKYSwFa2kOUPxlytJCcLIQchONMHqld6Oic2zoV97Lwup TAOcBkHNuUWG65qzQNMe6Yy+VnD9+xt6wqhb9C/aohWhixwonfSO4XArxr7A8IEPbyAg yKPeqAGLpvBH3Ng1gXANHRhJhnU1Vgg357LEAU+l9PRXptXm0tLJ5B48Na60N+hsjaR3 EB6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=p209B2WP2oh04l3EXvuOBIX5P0MjFLUsv6QlU+/CQUY=; b=iymlNNHd2O21Dmr9FakoQM1NZ9TWGO8yMCj+HJlFFExJjhynjS+4mhQyBo0na/RhFy ooxaZD8JY5VPXuAS0TykevknYruF9n3qAn6qVsE6ZvicSVELrEmUpFF/dIOlmmxm5ICM U+ddSvAWptq4HSMVeIdpJyt5WFvc0kTYHF/iZzEQkcquearza6s+EC/FOERWX5Ikx2Ae XPg6c4KIU0iX8wXtKo1v2j2enXxmElHpb1/ul2ZyaRsBDSwM/Te+0drPMl1tY7kwNefZ ImR1+ffUfQW5lQQvDaetjwBc3ZHCmID/wVFivSInRaLZ25jIBT2z8lRjcMol4mkZqih+ jPTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a056402438900b00427b30e8678si10473971edc.620.2022.05.04.07.35.45; Wed, 04 May 2022 07:36:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S1350401AbiEDNKw (ORCPT + 99 others); Wed, 4 May 2022 09:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241311AbiEDNKe (ORCPT ); Wed, 4 May 2022 09:10:34 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D78E403F8; Wed, 4 May 2022 06:06:39 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VCC0O7J_1651669595; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VCC0O7J_1651669595) by smtp.aliyun-inc.com(127.0.0.1); Wed, 04 May 2022 21:06:36 +0800 From: Yang Li To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] cifs: Return true/false (not 1/0) from bool functions Date: Wed, 4 May 2022 21:06:34 +0800 Message-Id: <20220504130634.101239-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return boolean values ("true" or "false") instead of 1 or 0 from bool functions. This fixes the following warnings from coccicheck: ./fs/cifs/file.c:4764:9-10: WARNING: return of 0/1 in function cifs_release_folio() with return type bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/cifs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 580a847aa8b5..a9123cefd84f 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -4761,7 +4761,7 @@ static int cifs_write_begin(struct file *file, struct address_space *mapping, static bool cifs_release_folio(struct folio *folio, gfp_t gfp) { if (folio_test_private(folio)) - return 0; + return false; if (folio_test_fscache(folio)) { if (current_is_kswapd() || !(gfp & __GFP_FS)) return false; -- 2.20.1.7.g153144c