mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
coccinelle: put_device: reduce false positives
Don't complain about a return when this function returns "&pdev->dev".
Fixes: da9cfb87a4 ("coccinelle: semantic code search for missing put_device()")
Reported-by: Julia Lawall <[email protected]>
Signed-off-by: Wen Yang <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
parent
688931a5ad
commit
7265f5b726
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ if (id == NULL || ...) { ... return ...; }
|
|||
( id
|
||||
| (T2)dev_get_drvdata(&id->dev)
|
||||
| (T3)platform_get_drvdata(id)
|
||||
| &id->dev
|
||||
);
|
||||
| return@p2 ...;
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue