]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use BUG_ON instead of if condition followed by BUG
authorxu xin <xu.xin16@zte.com.cn>
Tue, 28 Dec 2021 07:32:52 +0000 (07:32 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 10 Jan 2022 18:25:56 +0000 (13:25 -0500)
commitf789541890d5be5d1008318a42539c683e38859c
tree8533c703653ff81bbd2f6b55fd8d6f2ab27bf9e6
parent3cab72c0588266a690d391ba9f124bc865134af1
ext4: use BUG_ON instead of if condition followed by BUG

BUG_ON would be better.

This issue was detected with the help of Coccinelle.

Reported-by: Zeal robot <zealci@zte.com.cn>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Link: https://lore.kernel.org/r/20211228073252.580296-1-xu.xin16@zte.com.cn
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h