diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-09-25 14:53:15 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-09-25 14:53:15 -0400 |
commit | 4d96edc76ba1e7556700908c10cb0e257cce5573 (patch) | |
tree | a617f3410df24b01c0bf10d12c0d076fcc85e45c /src/vgahooks.c | |
parent | a899945754d20f084bb73a1cd2453f8cabfeb0e8 (diff) | |
download | seabios-hppa-4d96edc76ba1e7556700908c10cb0e257cce5573.zip seabios-hppa-4d96edc76ba1e7556700908c10cb0e257cce5573.tar.gz seabios-hppa-4d96edc76ba1e7556700908c10cb0e257cce5573.tar.bz2 |
Cleanup - it's no longer necessary to manually reset global variables.
Now that a soft-reboot forces a hard-reboot, it is no longer necessary
to manually reset global variables.
Diffstat (limited to 'src/vgahooks.c')
-rw-r--r-- | src/vgahooks.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vgahooks.c b/src/vgahooks.c index 14678be..eb4dfa8 100644 --- a/src/vgahooks.c +++ b/src/vgahooks.c @@ -13,7 +13,7 @@ #include "config.h" // CONFIG_* // The Bus/Dev/Fn of the primary VGA device. -int VGAbdf VAR16VISIBLE; +int VGAbdf VAR16VISIBLE = -1; // Coreboot board detected. int CBmainboard VAR16VISIBLE; @@ -305,11 +305,10 @@ vgahook_setup(const char *vendor, const char *part) if (! CONFIG_VGAHOOKS) return; - CBmainboard = 0; for (i=0; i<(sizeof(mainboard_list) / sizeof(mainboard_list[0])); i++) { if (!strcmp(vendor, mainboard_list[i].vendor) && !strcmp(part, mainboard_list[i].device)) { - printf("Found mainboard %s %s\n", vendor, part); + printf("Found mainboard %s %s\n", vendor, part); CBmainboard = mainboard_list[i].type; break; } |