On 17/05/14 09:32, Julia Lawall wrote:
> From: Julia Lawall
>
> Platform_get_drvdata is an accessor function, and has no purpose if its
> result is not used.
>
> The semantic patch that fixes this problem is as follows:
> (http://coccinelle.lip6.fr/)
>
> //
> @@
> identifier x;
> type T;
> @@
From: Julia Lawall
Platform_get_drvdata is an accessor function, and has no purpose if its
result is not used.
The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)
//
@@
identifier x;
type T;
@@
- T x = platform_get_drvdata(...);
... when != x
//
Signed-off-
2 matches
Mail list logo