]> git.baikalelectronics.ru Git - kernel.git/commit
Coccinelle: doubletest: reduce side effect false positives
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 3 Aug 2018 16:32:11 +0000 (18:32 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Aug 2018 23:58:49 +0000 (08:58 +0900)
commit6502b8ac284fecd9bfb0158c03b2dff5c775b646
tree8060cb4a4b28c630f6afc8fc5a9be1307e14b58a
parent99e224fa2e761cf4e0087868085001a7bd7639b7
Coccinelle: doubletest: reduce side effect false positives

Ensure that the cited expression is not a function call or an
assignment to reduce the chance of false positives.

Slightly modify the warning message to indicate another source
of false positves.

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