diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-03-11 06:27:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-11 12:19:35 -0500 |
commit | 604cc999fda36d6ff840e03dbc70244d2d17eee2 (patch) | |
tree | 9f9de33e51a01b34a0ebdf5238729a4829cea780 /drivers/video | |
parent | 6af7ffc414828cda880a4e99e20f4f07880281e7 (diff) |
[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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/arcfb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c index df8e5667b348..0cf26da75b6d 100644 --- a/drivers/video/arcfb.c +++ b/drivers/video/arcfb.c | |||
@@ -253,7 +253,7 @@ static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, | |||
253 | { | 253 | { |
254 | unsigned char *src; | 254 | unsigned char *src; |
255 | unsigned int xindex, yindex, chipindex, linesize; | 255 | unsigned int xindex, yindex, chipindex, linesize; |
256 | int i, count; | 256 | int i; |
257 | unsigned char val; | 257 | unsigned char val; |
258 | unsigned char bitmask, rightshift; | 258 | unsigned char bitmask, rightshift; |
259 | 259 | ||
@@ -282,7 +282,6 @@ static void arcfb_lcd_update_page(struct arcfb_par *par, unsigned int upper, | |||
282 | } | 282 | } |
283 | ks108_writeb_data(par, chipindex, val); | 283 | ks108_writeb_data(par, chipindex, val); |
284 | left++; | 284 | left++; |
285 | count++; | ||
286 | if (bitmask == 0x80) { | 285 | if (bitmask == 0x80) { |
287 | bitmask = 1; | 286 | bitmask = 1; |
288 | src++; | 287 | src++; |