Skip to content

Commit

Permalink
drivers/video/console/fbcon_cw.c: fix compiler warning in cw_update_attr
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Devendra Naga authored and torvalds committed Apr 29, 2013
1 parent 86fa05e commit 6cd472d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/console/fbcon_cw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand All @@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute,
c = ~c;
src++;
*dst++ = c;
t = c;
}
}
}
Expand Down

0 comments on commit 6cd472d

Please sign in to comment.