WSL2-Linux-Kernel/scripts/coccinelle
Fabian Frederick 5017335d6d scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warning
if()/BUG conversion to BUG_ON must be avoided when there's side effect
in condition.  The reason being BUG_ON won't execute the condition when
CONFIG_BUG is not defined.

With inspiration from Bruce Fields.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-04-14 16:48:56 -07:00
..
api coccinelle: api: add spatch to prevent unnecessary .owner 2014-11-06 15:16:02 -08:00
free scripts/coccinelle/free/ifnullfree.cocci: add copyright information 2014-08-08 15:57:27 -07:00
iterators Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
locks Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
misc scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warning 2015-04-14 16:48:56 -07:00
null coccinelle/null: solve parse error 2014-08-06 12:10:17 +02:00
tests Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00