coccinelle: deref_null: avoid useless computation
authorJulia Lawall <[email protected]>
Sat, 3 Feb 2018 07:44:58 +0000 (08:44 +0100)
committerMasahiro Yamada <[email protected]>
Wed, 7 Feb 2018 15:16:12 +0000 (00:16 +0900)
commita2b0fe7435faee6f6fbb27409878013bc4727e98
tree38e8875a759e3ed8150d066c3a98600d6e7e5050
parente856f3a7d706b37d8be9b41e41b19f4919570e57
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
scripts/coccinelle/null/deref_null.cocci