summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-08-19 02:48:15 +0200
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-08 02:05:23 +0000
commit2ffc56b3379004747f02b28b07c635f83a21e6f5 (patch)
tree7ab40604bac7f12b35e2d5ebfd0f1d79fecaad41 /chipset_enable.c
parentbf85c62a8df4e9c198ff670414338946d88ed0de (diff)
downloadflashrom-2ffc56b3379004747f02b28b07c635f83a21e6f5.tar.gz
flashrom-2ffc56b3379004747f02b28b07c635f83a21e6f5.tar.bz2
flashrom-2ffc56b3379004747f02b28b07c635f83a21e6f5.zip
tree: Retype variable `programmer_may_write` with bool
Use the bool type instead of an integer for the variable `programmer_may_write`, since this represents its purpose much better. Signed-off-by: Felix Singer <felixsinger@posteo.net> Change-Id: I69958527ae018a92f1c42734a7990d0c532dee0c Reviewed-on: https://review.coreboot.org/c/flashrom/+/66885 Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index e205a83d4..ae069894c 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -26,6 +26,7 @@
#define _LARGEFILE64_SOURCE
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -1526,7 +1527,7 @@ static int enable_flash_ck804(const struct programmer_cfg *cfg, struct pci_dev *
if (err > 0) {
msg_pinfo("%d locks could not be disabled, disabling writes (reads may also fail).\n", err);
- programmer_may_write = 0;
+ programmer_may_write = false;
}
reg = 0x88;