提交 d4ffeeb7 编写于 作者: J Jing Yangyang 提交者: Theodore Ts'o

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: NZeal Robot <zealci@zte.com.cn>
Signed-off-by: NJing Yangyang <jing.yangyang@zte.com.cn>
Reviewed-by: NJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210824055543.58718-1-deng.changcheng@zte.com.cnSigned-off-by: NTheodore Ts'o <tytso@mit.edu>
上级 de01f484
...@@ -1439,7 +1439,7 @@ static bool ext4_match(struct inode *parent, ...@@ -1439,7 +1439,7 @@ static bool ext4_match(struct inode *parent,
fname->hinfo.minor_hash != fname->hinfo.minor_hash !=
EXT4_DIRENT_MINOR_HASH(de)) { EXT4_DIRENT_MINOR_HASH(de)) {
return 0; return false;
} }
} }
return !ext4_ci_compare(parent, &cf, de->name, return !ext4_ci_compare(parent, &cf, de->name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册