Skip to content

Commit d4ffeeb

Browse files
Jing Yangyangtytso
authored andcommitted
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]>
1 parent de01f48 commit d4ffeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ static bool ext4_match(struct inode *parent,
14391439
fname->hinfo.minor_hash !=
14401440
EXT4_DIRENT_MINOR_HASH(de)) {
14411441

1442-
return 0;
1442+
return false;
14431443
}
14441444
}
14451445
return !ext4_ci_compare(parent, &cf, de->name,

0 commit comments

Comments
 (0)