1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

raiden_debug_spi.c: Retype variable found with bool

Use the bool type instead of an integer for the variable `found`,
since this represents its purpose much better.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: I18c69e678017a9c0655a31c0487fd1fb0d85ecf2
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66877
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Felix Singer 2022-08-19 00:54:15 +02:00 committed by Anastasia Klimchuk
parent 2ce2606bd5
commit 9197a44c28

View File

@ -343,6 +343,7 @@
#include "usb_device.h"
#include <libusb.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@ -1488,7 +1489,7 @@ static int raiden_debug_spi_init(const struct programmer_cfg *cfg)
char *serial = extract_programmer_param_str(cfg, "serial");
struct usb_device *current;
struct usb_device *device = NULL;
int found = 0;
bool found = false;
int ret;
int request_enable = get_target(cfg);
@ -1535,7 +1536,7 @@ static int raiden_debug_spi_init(const struct programmer_cfg *cfg)
}
if (!serial) {
found = 1;
found = true;
goto loop_end;
} else {
unsigned char dev_serial[32] = { 0 };
@ -1560,7 +1561,7 @@ static int raiden_debug_spi_init(const struct programmer_cfg *cfg)
} else {
msg_pinfo("Raiden: Serial number %s matched device", serial);
usb_device_show(" ", current);
found = 1;
found = true;
}
}
}