[PATCH] arcfb: Fix uninitialized value

Remove insignificant and uninitialized variable "count" from
arcfb_lcd_update_page.

Coverity Bug 894

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Antonino A. Daplas 2006-03-11 03:27:21 -08:00 committed by Linus Torvalds
parent 6af7ffc414
commit 604cc999fd
1 changed files with 1 additions and 2 deletions

View File

@ -253,7 +253,7 @@ static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper,
{ {
unsigned char *src; unsigned char *src;
unsigned int xindex, yindex, chipindex, linesize; unsigned int xindex, yindex, chipindex, linesize;
int i, count; int i;
unsigned char val; unsigned char val;
unsigned char bitmask, rightshift; unsigned char bitmask, rightshift;
@ -282,7 +282,6 @@ static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper,
} }
ks108_writeb_data(par, chipindex, val); ks108_writeb_data(par, chipindex, val);
left++; left++;
count++;
if (bitmask == 0x80) { if (bitmask == 0x80) {
bitmask = 1; bitmask = 1;
src++; src++;