summaryrefslogtreecommitdiffstats
path: root/drivers/video/arcfb.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2006-03-11 03:27:21 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-11 09:19:35 -0800
commit604cc999fda36d6ff840e03dbc70244d2d17eee2 (patch)
tree9f9de33e51a01b34a0ebdf5238729a4829cea780 /drivers/video/arcfb.c
parent6af7ffc414828cda880a4e99e20f4f07880281e7 (diff)
downloadop-kernel-dev-604cc999fda36d6ff840e03dbc70244d2d17eee2.zip
op-kernel-dev-604cc999fda36d6ff840e03dbc70244d2d17eee2.tar.gz
[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/arcfb.c')
-rw-r--r--drivers/video/arcfb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c
index df8e566..0cf26da 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,
{
unsigned char *src;
unsigned int xindex, yindex, chipindex, linesize;
- int i, count;
+ int i;
unsigned char val;
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);
left++;
- count++;
if (bitmask == 0x80) {
bitmask = 1;
src++;
OpenPOWER on IntegriCloud