Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Julia Lawall and committed by
Tomi Valkeinen
f57eda29 fbaa19df

-1
-1
drivers/video/fbdev/riva/riva_hw.c
··· 430 430 int mmisses, gmisses, vmisses, eburst_size, mburst_size; 431 431 int refresh_cycle; 432 432 433 - refresh_cycle = 0; 434 433 refresh_cycle = 2*(state->mclk_khz/state->pclk_khz) + 5; 435 434 mmisses = 2; 436 435 if (state->mem_aligned) gmisses = 2;