mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
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>
This commit is contained in:

committed by
Anastasia Klimchuk

parent
279add4f3a
commit
05ac08f786
@ -22,6 +22,7 @@
|
||||
|
||||
#include <strings.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include "flash.h"
|
||||
#include "programmer.h"
|
||||
@ -2292,7 +2293,7 @@ static int p2_not_a_laptop(void)
|
||||
static int p2_whitelist_laptop(void)
|
||||
{
|
||||
is_laptop = 1;
|
||||
laptop_ok = 1;
|
||||
laptop_ok = true;
|
||||
msg_pdbg("Whitelisted laptop detected.\n");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user