diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-12 14:12:15 +0100 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-01-12 17:41:58 +0100 |
commit | 128741682250e196ccc9ff0bf9e7a5db5dfcdbd3 (patch) | |
tree | 77f3adb8046d81cacd650ad77aa4aaf18cc6d3a7 /src/vendorcode | |
parent | 0af61b6c82d7ff02426a26bf435b7c6ee768a602 (diff) | |
download | coreboot-128741682250e196ccc9ff0bf9e7a5db5dfcdbd3.tar.xz |
CBFS: use cbfs_get_file_content whenever possible rather than cbfs_get_file
Number one reason to use cbfs_get_file was to get file length.
With previous patch no more need for this.
Change-Id: I330dda914d800c991757c5967b11963276ba9e00
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/4674
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/vendorcode')
-rw-r--r-- | src/vendorcode/google/chromeos/chromeos.c | 2 | ||||
-rw-r--r-- | src/vendorcode/google/chromeos/chromeos.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/google/chromeos/chromeos.c b/src/vendorcode/google/chromeos/chromeos.c index 828cfd289a..54fe8dbb30 100644 --- a/src/vendorcode/google/chromeos/chromeos.c +++ b/src/vendorcode/google/chromeos/chromeos.c @@ -82,7 +82,7 @@ int recovery_mode_enabled(void) } #if CONFIG_VBOOT_VERIFY_FIRMWARE -void *vboot_get_payload(int *len) +void *vboot_get_payload(size_t *len) { struct vboot_handoff *vboot_handoff; struct firmware_component *fwc; diff --git a/src/vendorcode/google/chromeos/chromeos.h b/src/vendorcode/google/chromeos/chromeos.h index d2410857ee..ae715dc153 100644 --- a/src/vendorcode/google/chromeos/chromeos.h +++ b/src/vendorcode/google/chromeos/chromeos.h @@ -48,7 +48,7 @@ void init_chromeos(int bootmode); #if CONFIG_VBOOT_VERIFY_FIRMWARE struct romstage_handoff; void vboot_verify_firmware(struct romstage_handoff *handoff); -void *vboot_get_payload(int *len); +void *vboot_get_payload(size_t *len); /* Returns 0 on success < 0 on error. */ int vboot_get_handoff_info(void **addr, uint32_t *size); #endif |