summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-08-19 03:03:47 +0200
committerAnastasia Klimchuk <aklm@chromium.org>2022-09-08 02:12:19 +0000
commit05ac08f786cfd3f3f5b00b5dfb0849056d99245a (patch)
treef776135fcb2714a10743c66191878d6d1f1b9844 /chipset_enable.c
parent279add4f3aa4aca2362304aec8f53df074dfe098 (diff)
downloadflashrom-05ac08f786cfd3f3f5b00b5dfb0849056d99245a.tar.gz
flashrom-05ac08f786cfd3f3f5b00b5dfb0849056d99245a.tar.bz2
flashrom-05ac08f786cfd3f3f5b00b5dfb0849056d99245a.zip
tree: Retype variable `laptop_ok` with bool
Use the bool type instead of an integer for the variable `laptop_ok`, since this represents its purpose much better. Signed-off-by: Felix Singer <felixsinger@posteo.net> Change-Id: I5d9fc3516bc2d29f11b056e35b3e5e324ce93423 Reviewed-on: https://review.coreboot.org/c/flashrom/+/66891 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index ae069894c..d6103c13b 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -826,7 +826,7 @@ static int enable_flash_ich_spi(const struct programmer_cfg *cfg, struct pci_dev
/* Suppress unknown laptop warning if we booted from SPI. */
if (boot_buses & BUS_SPI)
- laptop_ok = 1;
+ laptop_ok = true;
return 0;
}
@@ -971,7 +971,7 @@ static int enable_flash_pch100_or_c620(const struct programmer_cfg *cfg,
/* Suppress unknown laptop warning if we booted from SPI. */
if (!ret && (boot_buses & BUS_SPI))
- laptop_ok = 1;
+ laptop_ok = true;
_freepci_ret:
pci_free_dev(spi_dev);
@@ -1087,7 +1087,7 @@ static int enable_flash_silvermont(const struct programmer_cfg *cfg, struct pci_
/* Suppress unknown laptop warning if we booted from SPI. */
if (boot_buses & BUS_SPI)
- laptop_ok = 1;
+ laptop_ok = true;
return 0;
}
@@ -1676,7 +1676,7 @@ static int enable_flash_mcp6x_7x(const struct programmer_cfg *cfg, struct pci_de
/* Suppress unknown laptop warning if we booted from SPI. */
if (!ret && want_spi)
- laptop_ok = 1;
+ laptop_ok = true;
return ret;
}