From 2ffc56b3379004747f02b28b07c635f83a21e6f5 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 19 Aug 2022 02:48:15 +0200 Subject: 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 Change-Id: I69958527ae018a92f1c42734a7990d0c532dee0c Reviewed-on: https://review.coreboot.org/c/flashrom/+/66885 Reviewed-by: Anastasia Klimchuk Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- sb600spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sb600spi.c') diff --git a/sb600spi.c b/sb600spi.c index 40a6dbbf..8b02b51d 100644 --- a/sb600spi.c +++ b/sb600spi.c @@ -18,6 +18,7 @@ * GNU General Public License for more details. */ +#include #include #include #include "flash.h" @@ -554,7 +555,7 @@ static int handle_imc(const struct programmer_cfg *cfg, struct pci_dev *dev, enu } if (!amd_imc_force) - programmer_may_write = 0; + programmer_may_write = false; msg_pinfo("Writes have been disabled for safety reasons because the presence of the IMC\n" "was detected and it could interfere with accessing flash memory. Flashrom will\n" "try to disable it temporarily but even then this might not be safe:\n" -- cgit v1.2.3