]> git.baikalelectronics.ru Git - kernel.git/commit
9p: Use BUG_ON instead of if condition followed by BUG.
authorZhang Mingyu <zhang.mingyu@zte.com.cn>
Fri, 12 Nov 2021 09:25:47 +0000 (09:25 +0000)
committerDominique Martinet <asmadeus@codewreck.org>
Mon, 10 Jan 2022 01:00:09 +0000 (10:00 +0900)
commitb4768a8d88156620521b977288971008f2327ed4
treed87ac4dd7d5d024735d706889ccf29c901bacaff
parent3960cb3254804031d89da87f4bd6adc0b7837463
9p: Use BUG_ON instead of if condition followed by BUG.

This issue was detected with the help of Coccinelle.

Link: https://lkml.kernel.org/r/20211112092547.9153-1-zhang.mingyu@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Zhang Mingyu <zhang.mingyu@zte.com.cn>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/vfs_file.c