video: fbdev: sis: delete double assignment
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 23 Aug 2014 18:33:27 +0000 (20:33 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 26 Aug 2014 12:53:35 +0000 (15:53 +0300)
commita9a3cac6908a86ada51ab12f7eb39d0313814d23
tree7749ad788c624b935d555984971b8bb48f76736a
parent2079a513b0f03c8872322070944720d2c174b005
video: fbdev: sis: delete double assignment

Delete successive assignments to the same location.  The second assignment
is changed to update a different field, as done in other nearby code.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression i;
@@

*i = ...;
 i = ...;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/sis/init301.c