]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix boolreturn.cocci warnings in fs/ext4/name.c
authorJing Yangyang <jing.yangyang@zte.com.cn>
Tue, 24 Aug 2021 05:55:43 +0000 (22:55 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Nov 2021 14:33:25 +0000 (10:33 -0400)
commit6a38a8e807615fc853c6d3377abb27448f46dc98
tree7dc75e3a84c5dc8ab8605b9ec66064d6de1a6fe7
parentfea8027e1c1bb87670d48337ae26d9766eacc5ab
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 <zealci@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20210824055543.58718-1-deng.changcheng@zte.com.cn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c