]> asedeno.scripts.mit.edu Git - linux.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)
commit7265f5b72640f43e558af80347c62e32d568371f
treea73c895f860edb55e4266b24abcf3e0bc1208d8f
parent688931a5ad4e55ba0c215248ba510cd67bc3afb4
coccinelle: put_device: reduce false positives

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

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