From 9908a9a305699bbca42d0fcff88008ebea522b66 Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Mon, 29 Jul 2019 18:53:38 +0800 Subject: vboot: replace VBERROR_UNKNOWN with VB2_ERROR_UNKNOWN Replace vboot1-style VBERROR_UNKNOWN with VB2_ERROR_UNKNOWN. BUG=b:124141368, chromium:988410 TEST=make clean && make runtests BRANCH=none Change-Id: Icd2158e328142cff69ce94b5396ab021a1f7839c Signed-off-by: Joel Kitching Cq-Depend: chromium:1728115 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1722916 Commit-Queue: Joel Kitching Tested-by: Joel Kitching Reviewed-by: Julius Werner --- firmware/stub/vboot_api_stub_stream.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/stub/vboot_api_stub_stream.c') diff --git a/firmware/stub/vboot_api_stub_stream.c b/firmware/stub/vboot_api_stub_stream.c index 6748274a..ae0a6745 100644 --- a/firmware/stub/vboot_api_stub_stream.c +++ b/firmware/stub/vboot_api_stub_stream.c @@ -32,7 +32,7 @@ vb2_error_t VbExStreamOpen(VbExDiskHandle_t handle, uint64_t lba_start, if (!handle) { *stream = NULL; - return VBERROR_UNKNOWN; + return VB2_ERROR_UNKNOWN; } s = malloc(sizeof(*s)); @@ -52,16 +52,16 @@ vb2_error_t VbExStreamRead(VbExStream_t stream, uint32_t bytes, void *buffer) vb2_error_t rv; if (!s) - return VBERROR_UNKNOWN; + return VB2_ERROR_UNKNOWN; /* For now, require reads to be a multiple of the LBA size */ if (bytes % LBA_BYTES) - return VBERROR_UNKNOWN; + return VB2_ERROR_UNKNOWN; /* Fail on overflow */ sectors = bytes / LBA_BYTES; if (sectors > s->sectors_left) - return VBERROR_UNKNOWN; + return VB2_ERROR_UNKNOWN; rv = VbExDiskRead(s->handle, s->sector, sectors, buffer); if (rv != VB2_SUCCESS) -- cgit v1.2.1