1
linux/scripts/coccinelle/api
Julia Lawall 4003ba664b Reduce Coccinelle choices in string_choices.cocci
The isomorphism neg_if_exp negates the test of a ?: conditional,
making it unnecessary to have an explicit case for a negated test
with the branches inverted.

At the same time, we can disable neg_if_exp in cases where a
different API function may be more suitable for a negated test.

Finally, in the non-patch cases, E matches an expression with
parentheses around it, so there is no need to mention ()
explicitly in the pattern.  The () are still needed in the patch
cases, because we want to drop them, if they are present.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
2024-09-28 21:33:11 +02:00
..
alloc
atomic_as_refcounter.cocci
check_bq27xxx_data.cocci
d_find_alias.cocci
device_attr_show.cocci coccinelle: device_attr_show: Remove useless expression STR 2024-02-18 09:19:35 +01:00
err_cast.cocci
kfree_mismatch.cocci
kfree_sensitive.cocci
kstrdup.cocci
kvmalloc.cocci
memdup_user.cocci
memdup.cocci
platform_get_irq.cocci
platform_no_drv_owner.cocci
pm_runtime.cocci Coccinelle: pm_runtime: Fix grammar in comment 2024-05-20 21:31:33 +02:00
resource_size.cocci
simple_open.cocci
stream_open.cocci [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
string_choices.cocci Reduce Coccinelle choices in string_choices.cocci 2024-09-28 21:33:11 +02:00
vma_pages.cocci