original_kernel/scripts/coccinelle/misc
Ricardo Ribalda e4655196e2 coccinelle: misc: minmax: Suppress reports for err returns
Most of the people prefer:

return ret < 0 ? ret: 0;

than:

return min(ret, 0);

Let's tweak the cocci file to ignore those lines completely.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
2024-05-20 21:31:20 +02:00
..
add_namespace.cocci
array_size.cocci
array_size_dup.cocci
badty.cocci
boolconv.cocci
cond_no_effect.cocci
cstptr.cocci
do_div.cocci
doubleinit.cocci
excluded_middle.cocci
flexible_array.cocci
ifcol.cocci
irqf_oneshot.cocci
minmax.cocci
newline_in_nl_msg.cocci
noderef.cocci
of_table.cocci
orplus.cocci
returnvar.cocci
semicolon.cocci
struct_size.cocci
swap.cocci
test_addr.cocci
uninitialized_var.cocci
warn.cocci