]> git.baikalelectronics.ru Git - kernel.git/commit
coccinelle: put_device: reduce false positives
authorWen Yang <wen.yang99@zte.com.cn>
Sat, 23 Mar 2019 06:14:31 +0000 (14:14 +0800)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 28 Mar 2019 14:45:59 +0000 (23:45 +0900)
commit78acab605c25b41e93d8e27060b1b178474e8fc5
treea73c895f860edb55e4266b24abcf3e0bc1208d8f
parentf0c3d359f1241e5ad6dd096be3fad764029663f3
coccinelle: put_device: reduce false positives

Don't complain about a return when this function returns "&pdev->dev".

Fixes: 07afc1b2cd93 ("coccinelle: semantic code search for missing put_device()")
Reported-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/free/put_device.cocci