linux-sg2042/scripts/coccinelle/misc
Fabian Frederick 33236415ec 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.

Inspired-by: J. Bruce Fields <bfields@fieldses.org>
Suggested-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2015-04-15 14:21:31 +02:00
..
array_size.cocci Coccinelle: Script to use ARRAY_SIZE instead of division of two sizeofs 2014-08-06 12:10:17 +02:00
badty.cocci Coccinelle: Script to detect incorrect argument to sizeof 2014-08-06 12:10:17 +02:00
boolinit.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
boolreturn.cocci coccinelle: replace 0/1 with false/true in functions returning bool 2013-08-13 22:43:41 +02:00
bugon.cocci scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warning 2015-04-15 14:21:31 +02:00
cstptr.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
doubleinit.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
ifaddr.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
ifcol.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
irqf_oneshot.cocci irqf_oneshot.cocci: add check of devm_request_threaded_irq() 2015-03-25 11:58:10 +01:00
noderef.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
of_table.cocci coccinelle: Check for missing NULL terminators in of_device_id tables 2014-06-09 23:39:16 +02:00
orplus.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
returnvar.cocci coccicheck: Add unneeded return variable test 2014-06-10 14:36:30 +02:00
semicolon.cocci scripts/coccinelle/misc/semicolon.cocci: Add unneeded semicolon test 2013-01-24 12:10:38 +01:00
simple_return.cocci coccinelle: misc: semantic patch to delete overly complex return code processing 2014-09-26 13:42:31 +02:00
warn.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00