mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
fbaa19df03
commit
f57eda296d
1 changed files with 0 additions and 1 deletions
|
@ -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 mmisses, gmisses, vmisses, eburst_size, mburst_size;
|
||||||
int refresh_cycle;
|
int refresh_cycle;
|
||||||
|
|
||||||
refresh_cycle = 0;
|
|
||||||
refresh_cycle = 2*(state->mclk_khz/state->pclk_khz) + 5;
|
refresh_cycle = 2*(state->mclk_khz/state->pclk_khz) + 5;
|
||||||
mmisses = 2;
|
mmisses = 2;
|
||||||
if (state->mem_aligned) gmisses = 2;
|
if (state->mem_aligned) gmisses = 2;
|
||||||
|
|
Loading…
Reference in a new issue