aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-08-23 14:33:28 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-08-26 08:53:35 -0400
commit58678a77029bc1f78f80f6f93da3d302d587f951 (patch)
tree776c4ddd2c8ee6a5844e507e4be2df13892e9f48 /drivers/video/fbdev
parenta9a3cac6908a86ada51ab12f7eb39d0313814d23 (diff)
video: fbdev: au1200fb: delete double assignment
Delete successive assignments to the same location. 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>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/au1200fb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/au1200fb.c b/drivers/video/fbdev/au1200fb.c
index 40494dbdf519..18600d4e1b3f 100644
--- a/drivers/video/fbdev/au1200fb.c
+++ b/drivers/video/fbdev/au1200fb.c
@@ -1254,7 +1254,6 @@ static void set_global(u_int cmd, struct au1200_lcd_global_regs_t *pdata)
1254 pdata->brightness = 30; 1254 pdata->brightness = 30;
1255 } 1255 }
1256 divider = (lcd->pwmdiv & 0x3FFFF) + 1; 1256 divider = (lcd->pwmdiv & 0x3FFFF) + 1;
1257 hi1 = (lcd->pwmhi >> 16) + 1;
1258 hi1 = (((pdata->brightness & 0xFF)+1) * divider >> 8); 1257 hi1 = (((pdata->brightness & 0xFF)+1) * divider >> 8);
1259 lcd->pwmhi &= 0xFFFF; 1258 lcd->pwmhi &= 0xFFFF;
1260 lcd->pwmhi |= (hi1 << 16); 1259 lcd->pwmhi |= (hi1 << 16);