From: Devendra Naga Date: Wed, 20 Mar 2013 04:06:53 +0000 (+1100) Subject: drivers/video/console/fbcon_cw.c: fix compiler warning in cw_update_attr X-Git-Tag: next-20130322~1^2~435 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8cc52d6f77ad6afc4803cc11e7a6a01b4ebd66c6;p=karo-tx-linux.git drivers/video/console/fbcon_cw.c: fix compiler warning in cw_update_attr with make W=1 saw 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: Devendra Naga Cc: Florian Tobias Schandinat Signed-off-by: Andrew Morton --- diff --git a/drivers/video/console/fbcon_cw.c b/drivers/video/console/fbcon_cw.c index 6a737827beb1..a93670ef7f89 100644 --- a/drivers/video/console/fbcon_cw.c +++ b/drivers/video/console/fbcon_cw.c @@ -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 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 (j = 0; j < width; j++) { @@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute, c = ~c; src++; *dst++ = c; - t = c; } } }