aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJing Yangyang <[email protected]>2021-08-23 22:55:43 -0700
committerTheodore Ts'o <[email protected]>2021-11-04 10:33:25 -0400
commitd4ffeeb7315d82e10803e067cbf079f246b09f00 (patch)
tree7dc75e3a84c5dc8ab8605b9ec66064d6de1a6fe7
parentde01f484576d29b02fb2856387f29cfdf5ad4f19 (diff)
ext4: fix boolreturn.cocci warnings in fs/ext4/name.c
Return statements in functions returning bool should use true/false instead of 1/0. ./fs/ext4/namei.c:1441:12-13:WARNING:return of 0/1 in function 'ext4_match' with return type bool Reported-by: Zeal Robot <[email protected]> Signed-off-by: Jing Yangyang <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r--fs/ext4/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index da7698341d7d..52c9bd154122 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1439,7 +1439,7 @@ static bool ext4_match(struct inode *parent,
fname->hinfo.minor_hash !=
EXT4_DIRENT_MINOR_HASH(de)) {
- return 0;
+ return false;
}
}
return !ext4_ci_compare(parent, &cf, de->name,