Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3070117pxf; Sun, 14 Mar 2021 23:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuzgtyXv101wCbNLfSb3rFr7Z3a+QIjUK4gP3ps33zFufdsumx2W+8qW/UunsIdz/37Ry7 X-Received: by 2002:a05:6402:1853:: with SMTP id v19mr28001902edy.179.1615791495587; Sun, 14 Mar 2021 23:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615791495; cv=none; d=google.com; s=arc-20160816; b=IwCpo041pcy5qTJ5EeaAHDFkC4omSqwC/V3fvCKLcK5YZL9A1McoLx4mTfqDT7GBRZ BUAo3H0wuFAqdgcCcjtL3f0KDpp6ey7Y2SDmQsrxPH4JB1mXxBMnyw4MryPYfxlGJRCX jgGBnwgLN8a1w1DTwNDwW7jbR3CJcPlu19votSsuNC7CxQtaPOQjbFLEk+RPz9f0mRNG 5bIkXcYiMApiAu8KwR8TgUg85Rf5ajpRM2YvZpT/EU4Y+/T490RlPoaKc5pgyuK9c1Ju rwPp6QcnLEAVubO9ENmWDidXmCD9iV1MoYqPL+D/d19E/Egd/ls95+9SqOwlYMBT2Bvb 15Iw== 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=sHVPB0ghID1rUXz7jHOMvXgrIIL0Ku/HFJrIWRvMBq8=; b=0qWUo/BXaQCkHZYK++kayy8lMMNpI/CeKLEobI+56XqeRPsYQxPgFo7c2AGUsRzsfd WRh3y8FqPNGV0fjrjbeCadWl9b46ETtXJ1PMr9qaBQsxnnwD8c6vDYE104rAtRxOg4pS WOV3KRUg9O/KImt8R8X4a4tLUH0fwdXj6MWUlg097t02BEQI4O1mEQA1kVGCIFPxdVdi 8ZrH+JWeMsqhvcsTt2yAWUicAlRSfcImSMLJnVAAe+TL3Syah+Hx0YiuSQFUSp0x4mYZ k2YV4n7m9OJAnTsyDHIfmpkvPxrrX4Xd7MTaatxC/fPQfPtK5+1Gnt/kNN/lkI7eKk6I K5pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si9936842ejc.294.2021.03.14.23.57.53; Sun, 14 Mar 2021 23:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230038AbhCOGzw (ORCPT + 99 others); Mon, 15 Mar 2021 02:55:52 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:57855 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbhCOGzs (ORCPT ); Mon, 15 Mar 2021 02:55:48 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0URuxqXP_1615791345; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0URuxqXP_1615791345) by smtp.aliyun-inc.com(127.0.0.1); Mon, 15 Mar 2021 14:55:45 +0800 From: Yang Li To: masahiroy@kernel.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] kconfig: use true and false for bool variable Date: Mon, 15 Mar 2021 14:55:44 +0800 Message-Id: <1615791344-48675-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fixed the following coccicheck: ./scripts/kconfig/confdata.c:36:9-10: WARNING: return of 0/1 in function 'is_dir' with return type bool Reported-by: Abaci Robot Signed-off-by: Yang Li --- scripts/kconfig/confdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 2568dbe..b65b8c3 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -33,7 +33,7 @@ static bool is_dir(const char *path) struct stat st; if (stat(path, &st)) - return 0; + return false; return S_ISDIR(st.st_mode); } -- 1.8.3.1