summaryrefslogtreecommitdiff
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2021-03-15 09:55:44 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-14 09:22:49 +0300
commita69b191f6297310ff140f2868b89fe2a2f355b90 (patch)
tree54751e075d059fb15ca2cafd2da123418d536b44 /scripts/kconfig
parent6dd85ff178cd76851e2184b13e545f5a88d1be30 (diff)
downloadlinux-a69b191f6297310ff140f2868b89fe2a2f355b90.tar.xz
kconfig: use true and false for bool variable
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 <abaci@linux.alibaba.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/confdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index f3998d5ddd02..c796d402665e 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);
}