video: fbdev: intelfb: delete double assignment
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 23 Aug 2014 18:33:23 +0000 (20:33 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 26 Aug 2014 12:53:34 +0000 (15:53 +0300)
commit2079a513b0f03c8872322070944720d2c174b005
tree53c10c81d356524971a714fed4099dba2979092c
parentf57eda296dc327fc3f5d21099cf232bcd004237f
video: fbdev: intelfb: delete double assignment

Delete successive assignments to the same location.

In the second case, = is converted to |=, which looks appropriate based on
the values involved.

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/intelfb/intelfbhw.c