Messages in this thread | | | Date | Sat, 13 Nov 1999 20:46:22 +0100 | From | Pavel Machek <> | Subject | Re: [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/
| |