summaryrefslogtreecommitdiff
path: root/util/e6400-flash-unlock/e6400_flash_unlock.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-04-24 13:14:23 +0100
committerLeah Rowe <leah@libreboot.org>2023-04-24 13:14:23 +0100
commit6588be675f34436cfef7d41e630e47fda995fa14 (patch)
tree288e776735c64b298a67de7dc4598a321db4d7fc /util/e6400-flash-unlock/e6400_flash_unlock.c
parent20192c08488104f5cacc1f3842ae8e0ee74c44ef (diff)
don't force console mode in grub
the deleted patch (in this commit) was written to fix an issue theoretically; it hasn't been fully tested, and some people have reported strange issues since this patch was merged - there is no proof that this patch causes them, but removing this patch is the correct thing to do regardless
Diffstat (limited to 'util/e6400-flash-unlock/e6400_flash_unlock.c')
-rw-r--r--util/e6400-flash-unlock/e6400_flash_unlock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/util/e6400-flash-unlock/e6400_flash_unlock.c b/util/e6400-flash-unlock/e6400_flash_unlock.c
index 88ba2e9..0bffef6 100644
--- a/util/e6400-flash-unlock/e6400_flash_unlock.c
+++ b/util/e6400-flash-unlock/e6400_flash_unlock.c
@@ -63,9 +63,7 @@ volatile uint8_t *rcba_mmio;
int
main(int argc, char *argv[])
{
- int devmemfd;
- (void)argc;
- (void)argv;
+ int devmemfd; (void)argc; (void)argv;
if ((ioperm(EC_INDEX, 2, 1) == -1) || (ioperm(SMI_EN_REG, 4, 1) == -1))
err(errno, "Could not access IO ports");
@@ -92,6 +90,7 @@ main(int argc, char *argv[])
set_gbl_smi_en(1);
printf("SMIs enabled, you can now shutdown the system.\n");
}
+
return errno;
}