]> git.baikalelectronics.ru Git - kernel.git/commit
coccinelle: deref_null: avoid useless computation
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 3 Feb 2018 07:44:58 +0000 (08:44 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 7 Feb 2018 15:16:12 +0000 (00:16 +0900)
commita4f69e784f0666ba77ed98b3cc5d2ad550bf0d9c
tree38e8875a759e3ed8150d066c3a98600d6e7e5050
parent22a18c2eb90df4de8b92b2dd1d93fa2b611600cf
coccinelle: deref_null: avoid useless computation

The effect of the rules ifm1, pr11, and pr12 is only used in the final rule,
which depends on context && !org && !report.  Thus these rules should only
be performed in those circumstances.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/null/deref_null.cocci