]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/xen/xenbus/xenbus_client.c: fix bugon.cocci warnings
authorJing Yangyang <jing.yangyang@zte.com.cn>
Wed, 25 Aug 2021 06:24:51 +0000 (23:24 -0700)
committerJuergen Gross <jgross@suse.com>
Mon, 30 Aug 2021 10:04:53 +0000 (12:04 +0200)
commitbb70913dceca050e8f4f60ba5361fcf62460df06
treeb62cb363fa154bf0267ecb914fdddedecf997137
parentb94e4b147fd1992ad450e1fea1fdaa3738753373
drivers/xen/xenbus/xenbus_client.c: fix bugon.cocci warnings

Use BUG_ON instead of a if condition followed by BUG.

Generated by: scripts/coccinelle/misc/bugon.cocci

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Reviewed-by: SeongJae Park <sjpark@amazon.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210825062451.69998-1-deng.changcheng@zte.com.cn
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xenbus/xenbus_client.c