diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2013-04-29 18:05:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:26 -0400 |
commit | 6cd472d3d2a9cace26eae924fe95ec21dc4a0502 (patch) | |
tree | ee098aad7f2d9c10a230b1b7e06e408229b18acb | |
parent | 86fa05e00eeefbda50e3ed6dd0a915e24964526b (diff) |
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: Devendra Naga <devendra.aaru@gmail.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/console/fbcon_cw.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, | |||
27 | { | 27 | { |
28 | int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; | 28 | int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; |
29 | int width = (vc->vc_font.height + 7) >> 3; | 29 | int width = (vc->vc_font.height + 7) >> 3; |
30 | u8 c, t = 0, msk = ~(0xff >> offset); | 30 | u8 c, msk = ~(0xff >> offset); |
31 | 31 | ||
32 | for (i = 0; i < vc->vc_font.width; i++) { | 32 | for (i = 0; i < vc->vc_font.width; i++) { |
33 | for (j = 0; j < width; j++) { | 33 | for (j = 0; j < width; j++) { |
@@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute, | |||
40 | c = ~c; | 40 | c = ~c; |
41 | src++; | 41 | src++; |
42 | *dst++ = c; | 42 | *dst++ = c; |
43 | t = c; | ||
44 | } | 43 | } |
45 | } | 44 | } |
46 | } | 45 | } |