From b29bd27b065bbe91598b7f373413da54c6b21056 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Thu, 3 Dec 2015 11:29:12 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/12633 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/lib/cbfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3