lkml.org 
[lkml]   [1999]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] unused vars in fbcon.c
Hi!

> Minor unused vars in fbcon.c

> --- drivers/video/fbcon.c.orig Fri Nov 12 15:12:24 1999
> +++ drivers/video/fbcon.c Fri Nov 12 15:13:19 1999
> @@ -1948,12 +1948,17 @@
> {
> struct display *p = &fb_display[fg_console]; /* draw to vt in foreground */ int depth = p->var.bits_per_pixel;
> - int line = p->next_line;
> unsigned char *fb = p->screen_base;
> unsigned char *logo;
> - unsigned char *dst, *src;
> - int i, j, n, x1, y1, x;
> + int i, j, n, x;
> int logo_depth, done = 0;
> +#if defined(CONFIG_FBCON_CFB16) || defined(CONFIG_FBCON_CFB24) || \
> + defined(CONFIG_FBCON_CFB32) || defined(CONFIG_FB_SBUS)
> + unsigned char *dst, *src;
> + int line = p->next_line;
> + int x1, y1;
> +#endif

Unused variables are better than ifdef...
Pavel

--
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel. Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.043 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site