From: Yang Li Date: Mon, 15 Mar 2021 06:55:44 +0000 (+0800) Subject: kconfig: use true and false for bool variable X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=071e9fca32ab2cdc71cb4dbdf903e748b097bb5c;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Yang Li Signed-off-by: Masahiro Yamada --- 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); }