Commit e20c180c authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: Fbmon cleanup

While browsing the video/fbcon.c source file (Linux 2.6.10-rc3) I found some
possible cleanups.  Patch follows, feel free to apply all or parts of it if it
looks OK to you.

Remove unnecessary bit operations.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 34d94e21
...@@ -662,7 +662,7 @@ static void get_monspecs(unsigned char *edid, struct fb_monspecs *specs) ...@@ -662,7 +662,7 @@ static void get_monspecs(unsigned char *edid, struct fb_monspecs *specs)
fb_get_monitor_limits(edid, specs); fb_get_monitor_limits(edid, specs);
c = (block[0] & 0x80) >> 7; c = block[0] & 0x80;
specs->input = 0; specs->input = 0;
if (c) { if (c) {
specs->input |= FB_DISP_DDI; specs->input |= FB_DISP_DDI;
...@@ -686,13 +686,10 @@ static void get_monspecs(unsigned char *edid, struct fb_monspecs *specs) ...@@ -686,13 +686,10 @@ static void get_monspecs(unsigned char *edid, struct fb_monspecs *specs)
DPRINTK("0.700V/0.000V"); DPRINTK("0.700V/0.000V");
specs->input |= FB_DISP_ANA_700_000; specs->input |= FB_DISP_ANA_700_000;
break; break;
default:
DPRINTK("unknown");
specs->input |= FB_DISP_UNKNOWN;
} }
} }
DPRINTK("\n Sync: "); DPRINTK("\n Sync: ");
c = (block[0] & 0x10) >> 4; c = block[0] & 0x10;
if (c) if (c)
DPRINTK(" Configurable signal level\n"); DPRINTK(" Configurable signal level\n");
c = block[0] & 0x0f; c = block[0] & 0x0f;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment