Re: [PATCH 2/2] video: delete unneeded call to platform_get_drvdata

From: Tomi Valkeinen
Date: Mon May 19 2014 - 09:05:11 EST


On 17/05/14 09:32, Julia Lawall wrote:
> From: Julia Lawall <Julia.Lawall@xxxxxxx>
>
> 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/)
>
> // <smpl>
> @@
> identifier x;
> type T;
> @@
> - T x = platform_get_drvdata(...);
> ... when != x
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>
>
> ---
> drivers/video/fbdev/bf54x-lq043fb.c | 2 --
> 1 file changed, 2 deletions(-)

Thanks, queued for 3.16.

Tomi


Attachment: signature.asc
Description: OpenPGP digital signature