coccinelle: Remove unnecessary parentheses for only one possible change.
authorHongbo Li <lihongbo22@huawei.com>
Wed, 11 Sep 2024 01:09:27 +0000 (09:09 +0800)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 28 Sep 2024 19:23:31 +0000 (21:23 +0200)
commitf584e3752ca7bb1f8849a85816b3c974f1aa67ec
tree41a49b4e20e135bff59d35ea3a1ac950433ff9fe
parent253244cdf16a755039f9078b0a785176712f2584
coccinelle: Remove unnecessary parentheses for only one possible change.

The parentheses are only needed if there is a disjunction, ie a
set of possible changes. If there is only one pattern, we can
remove these parentheses. Just like the format:

  -  x
  +  y

not:

  (
  -  x
  +  y
  )

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccinelle/api/string_choices.cocci