aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbmon.c')
-rw-r--r--drivers/video/fbmon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c
index 438b9411905c..4ba9c0894416 100644
--- a/drivers/video/fbmon.c
+++ b/drivers/video/fbmon.c
@@ -591,7 +591,7 @@ static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize)
591{ 591{
592 struct fb_videomode *mode, *m; 592 struct fb_videomode *mode, *m;
593 unsigned char *block; 593 unsigned char *block;
594 int num = 0, i; 594 int num = 0, i, first = 1;
595 595
596 mode = kzalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL); 596 mode = kzalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL);
597 if (mode == NULL) 597 if (mode == NULL)
@@ -608,8 +608,6 @@ static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize)
608 DPRINTK(" Detailed Timings\n"); 608 DPRINTK(" Detailed Timings\n");
609 block = edid + DETAILED_TIMING_DESCRIPTIONS_START; 609 block = edid + DETAILED_TIMING_DESCRIPTIONS_START;
610 for (i = 0; i < 4; i++, block+= DETAILED_TIMING_DESCRIPTION_SIZE) { 610 for (i = 0; i < 4; i++, block+= DETAILED_TIMING_DESCRIPTION_SIZE) {
611 int first = 1;
612
613 if (!(block[0] == 0x00 && block[1] == 0x00)) { 611 if (!(block[0] == 0x00 && block[1] == 0x00)) {
614 get_detailed_timing(block, &mode[num]); 612 get_detailed_timing(block, &mode[num]);
615 if (first) { 613 if (first) {