From 6588be675f34436cfef7d41e630e47fda995fa14 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 24 Apr 2023 13:14:23 +0100 Subject: 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 --- util/e6400-flash-unlock/e6400_flash_unlock.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'util/e6400-flash-unlock') diff --git a/util/e6400-flash-unlock/e6400_flash_unlock.c b/util/e6400-flash-unlock/e6400_flash_unlock.c index 88ba2e98..0bffef6d 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; } -- cgit v1.2.1