Commit 6cd472d3 authored by Devendra Naga's avatar Devendra Naga Committed by Linus Torvalds

drivers/video/console/fbcon_cw.c: fix compiler warning in cw_update_attr

With make W=1 we get

  drivers/video/console/fbcon_cw.c: In function `cw_update_attr':
  drivers/video/console/fbcon_cw.c:30:8: warning: variable `t' set but not used [-Wunused-but-set-variable]

fixed by removing as since its used nowhere
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 86fa05e0
...@@ -27,7 +27,7 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute, ...@@ -27,7 +27,7 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute,
{ {
int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2;
int width = (vc->vc_font.height + 7) >> 3; int width = (vc->vc_font.height + 7) >> 3;
u8 c, t = 0, msk = ~(0xff >> offset); u8 c, msk = ~(0xff >> offset);
for (i = 0; i < vc->vc_font.width; i++) { for (i = 0; i < vc->vc_font.width; i++) {
for (j = 0; j < width; j++) { for (j = 0; j < width; j++) {
...@@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute, ...@@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute,
c = ~c; c = ~c;
src++; src++;
*dst++ = c; *dst++ = c;
t = c;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment