summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2015-12-03 11:29:12 -0800
committerJulius Werner <jwerner@chromium.org>2015-12-04 17:52:36 +0100
commitb29bd27b065bbe91598b7f373413da54c6b21056 (patch)
treee338b8f7435c58c4ea21f65da921d9d83241e410
parent1d05731e11d7fb48e940e4c40dfaf1d1a88d7bc8 (diff)
cbfs: Fix typo in cbfs_prog_stage_load()
The proper return value to signal an error from cbfs_prog_stage_load() is -1, not 0. Change-Id: Ie53b0359c7c036e3f809d1f941dab53f090b84ab Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/12633 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
-rw-r--r--src/lib/cbfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 57b64dd871..c782818ced 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -202,7 +202,7 @@ int cbfs_prog_stage_load(struct prog *pstage)
const struct region_device *fh = prog_rdev(pstage);
if (rdev_readat(fh, &stage, 0, sizeof(stage)) != sizeof(stage))
- return 0;
+ return -1;
fsize = region_device_sz(fh);
fsize -= sizeof(stage);