1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 16:03:47 +02:00

Gcc thinks base could be used uninitialized, so shut it up

Bug from r3791.

Corresponding to flashrom svn r357 and coreboot v2 svn r3792.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
This commit is contained in:
Peter Stuge 2008-12-03 23:36:48 +00:00
parent 73bdb92b5d
commit 7ccce54a69

View File

@ -105,7 +105,7 @@ struct flashchip *probe_flash(struct flashchip *first_flash, int force)
{ {
volatile uint8_t *bios; volatile uint8_t *bios;
struct flashchip *flash; struct flashchip *flash;
unsigned long base, size; unsigned long base = 0, size;
for (flash = first_flash; flash && flash->name; flash++) { for (flash = first_flash; flash && flash->name; flash++) {
if (chip_to_probe && strcmp(flash->name, chip_to_probe) != 0) if (chip_to_probe && strcmp(flash->name, chip_to_probe) != 0)