aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-02-23 17:24:13 +0100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-05 14:18:40 +1100
commite03082b84c387c936bd0b1639776eed5549df889 (patch)
treeecb4c48aadc1fc4fa52d33a5184c7809531a03ee /core
parentd718afa570473277a47db7e562cafde4cc5e327e (diff)
downloadskiboot-e03082b84c387c936bd0b1639776eed5549df889.zip
skiboot-e03082b84c387c936bd0b1639776eed5549df889.tar.gz
skiboot-e03082b84c387c936bd0b1639776eed5549df889.tar.bz2
flash: fix return value of flash_find_subpartition()
sparse spotted the problem : core/flash.c:379:22: warning: odd constant _Bool cast (fffffffffffffff6 becomes 1) Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/flash.c b/core/flash.c
index 3a06d1d..37827b3 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -385,7 +385,7 @@ static int flash_find_subpartition(struct flash_chip *chip, uint32_t subid,
struct flash_hostboot_header *header;
char eyecatcher[5];
uint32_t i, partsize;
- bool rc;
+ int rc;
header = malloc(FLASH_SUBPART_HEADER_SIZE);
if (!header)