]> git.hungrycats.org Git - linux/commitdiff
Remove pointless cast-as-lvalue usage from modedb.c
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 10:59:22 +0000 (03:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 10:59:22 +0000 (03:59 -0700)
It's evil, people. Don't use that particular gcc extension.
I've yet to meet anybody who could read the resulting code
and tell me what the heck it does.

drivers/video/modedb.c

index abb201db1e7fb4340783030fc29f2979fb01a77c..e67c4981915dd7d71cb66a8e26811853fa3262fc 100644 (file)
@@ -583,7 +583,7 @@ void fb_var_to_videomode(struct fb_videomode *mode,
 {
        u32 pixclock, hfreq, htotal, vtotal;
 
-       (char *) mode->name = NULL;
+       mode->name = NULL;
        mode->xres = var->xres;
        mode->yres = var->yres;
        mode->pixclock = var->pixclock;