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 update Coccinelle URL 2022-08-07 21:30:36 +02:00
atomic_as_refcounter.cocci coccinelle: api/atomic_as_refcounter: include message type in output 2022-12-26 21:47:12 +01:00
check_bq27xxx_data.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
d_find_alias.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
device_attr_show.cocci coccinelle: device_attr_show: Remove useless expression STR 2024-02-18 09:19:35 +01:00
err_cast.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
kfree_mismatch.cocci coccinelle: api: add kfree_mismatch script 2020-10-17 23:11:06 +02:00
kfree_sensitive.cocci coccinelle: api: kfree_sensitive: print memset position 2020-10-10 21:26:12 +02:00
kstrdup.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
kvmalloc.cocci coccinelle: api: rename kzfree to kfree_sensitive 2021-08-05 13:01:09 +02:00
memdup_user.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
memdup.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
platform_get_irq.cocci coccinelle: platform_get_irq: Fix parse error 2019-09-06 10:10:28 +02:00
platform_no_drv_owner.cocci treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 257 2019-06-05 17:30:27 +02:00
pm_runtime.cocci Coccinelle: pm_runtime: Fix grammar in comment 2024-05-20 21:31:33 +02:00
resource_size.cocci update Coccinelle URL 2022-08-07 21:30:36 +02:00
simple_open.cocci License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00