edid.c: fix compilation with gcc 4.8.1

BRANCH=none
TEST=compile tested with latest toolchain
BUG=none

Change-Id: I0be627bdcd9fd17197b2e2286c1bb869f1c02119
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/170040
Reviewed-by: Ronald Minnich <rminnich@chromium.org>
This commit is contained in:
Stefan Reinauer 2013-09-19 11:50:00 -07:00 committed by chrome-internal-fetch
commit bb4a9e8c57

View file

@ -1201,7 +1201,7 @@ int decode_edid(unsigned char *edid, int size, struct edid *out)
printk(BIOS_SPEW, "Standard timings supported:\n");
for (i = 0; i < 8; i++) {
uint8_t b1 = edid[0x26 + i * 2], b2 = edid[0x26 + i * 2 + 1];
unsigned int x, y, refresh;
unsigned int x, y = 0, refresh;
if (b1 == 0x01 && b2 == 0x01)
continue;