Skip to content

Commit

Permalink
[PATCH] arcfb: Fix uninitialized value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Mar 11, 2006
1 parent 6af7ffc commit 604cc99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/arcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper,
{
unsigned char *src;
unsigned int xindex, yindex, chipindex, linesize;
int i, count;
int i;
unsigned char val;
unsigned char bitmask, rightshift;

Expand Down Expand Up @@ -282,7 +282,6 @@ static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper,
}
ks108_writeb_data(par, chipindex, val);
left++;
count++;
if (bitmask == 0x80) {
bitmask = 1;
src++;
Expand Down

0 comments on commit 604cc99

Please sign in to comment.