From 4acd965573728faa8f564514f2cb76a9db5fbc01 Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Wed, 1 Jul 2020 10:26:32 +0200 Subject: [PATCH] flash/nor/sh_qspi: Use 'bool' data type Change-Id: Id5567102013648b1565078310abc27bee4446992 Signed-off-by: Marc Schink Reviewed-on: http://openocd.zylin.com/5748 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/flash/nor/sh_qspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flash/nor/sh_qspi.c b/src/flash/nor/sh_qspi.c index e6c9be4b48..1ba9753392 100644 --- a/src/flash/nor/sh_qspi.c +++ b/src/flash/nor/sh_qspi.c @@ -77,7 +77,7 @@ struct sh_qspi_flash_bank { const struct flash_device *dev; uint32_t io_base; - int probed; + bool probed; struct working_area *io_algorithm; struct working_area *source; unsigned int buffer_size; @@ -755,7 +755,7 @@ static int sh_qspi_probe(struct flash_bank *bank) if (info->probed) free(bank->sectors); - info->probed = 0; + info->probed = false; for (target_device = target_devices; target_device->name; ++target_device) @@ -825,7 +825,7 @@ static int sh_qspi_probe(struct flash_bank *bank) } bank->sectors = sectors; - info->probed = 1; + info->probed = true; return ERROR_OK; } -- 2.30.2