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

2014-05-19 Thread Tomi Valkeinen
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; > @@

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

2014-05-16 Thread Julia Lawall
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-