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)
commita7a427d1543f89ad57fda5d6b9bb70f4cecb2fba
treed87ac4dd7d5d024735d706889ccf29c901bacaff
parent019641d1b57dff018972b23c95e898f9ff18222f
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