summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/riva/riva_hw.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-08-23 20:33:22 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-08-26 15:53:34 +0300
commitf57eda296dc327fc3f5d21099cf232bcd004237f (patch)
tree3ac03c99e89cd666d10393f23877bda37974a5a3 /drivers/video/fbdev/riva/riva_hw.c
parentfbaa19df03f87c2aa6a3a0a14dd7d4c098d45643 (diff)
downloadlinux-stable-f57eda296dc327fc3f5d21099cf232bcd004237f.tar.gz
linux-stable-f57eda296dc327fc3f5d21099cf232bcd004237f.tar.bz2
linux-stable-f57eda296dc327fc3f5d21099cf232bcd004237f.zip
video: fbdev: riva: 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/riva/riva_hw.c')
-rw-r--r--drivers/video/fbdev/riva/riva_hw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/riva/riva_hw.c b/drivers/video/fbdev/riva/riva_hw.c
index 78fdbf5178d7..8bdf37f3013b 100644
--- a/drivers/video/fbdev/riva/riva_hw.c
+++ b/drivers/video/fbdev/riva/riva_hw.c
@@ -430,7 +430,6 @@ static char nv3_arb(nv3_fifo_info * res_info, nv3_sim_state * state, nv3_arb_in
int mmisses, gmisses, vmisses, eburst_size, mburst_size;
int refresh_cycle;
- refresh_cycle = 0;
refresh_cycle = 2*(state->mclk_khz/state->pclk_khz) + 5;
mmisses = 2;
if (state->mem_aligned) gmisses = 2;