]> 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)
commita43d66a20546730834620a798753939efa65141e
treea73c895f860edb55e4266b24abcf3e0bc1208d8f
parente5f1c45c8ff0336558b3cab8900f3627008faee5
coccinelle: put_device: reduce false positives

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

Fixes: 20db55e46072 ("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