diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2013-02-19 17:59:21 +0100 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2013-02-19 19:44:57 +0100 |
commit | 46cb96bb887c88ab0c03dc83ebd6ba107a5d908c (patch) | |
tree | 71017aa34d5bf5b60a9a2ab4670706e132e08daa /payloads/libpayload/libcbfs | |
parent | 82682d50ec8d0850020a57db1911f91748811a2e (diff) |
libpayload: libcbfs: Fix legacy CBFS API, typos
get_cbfs_header expects CBFS_HEADER_INVALID_ADDRESS (0xffffffff)
instead of NULL when something is wrong.
Also, fix typo.
Change-Id: Ibe56c9eab3b9fdfc6d0b14bc848ca75f3a4fc2f1
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/2455
Tested-by: build bot (Jenkins)
Reviewed-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'payloads/libpayload/libcbfs')
-rw-r--r-- | payloads/libpayload/libcbfs/cbfs_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/payloads/libpayload/libcbfs/cbfs_core.c b/payloads/libpayload/libcbfs/cbfs_core.c index 4fecd40370..9bae188cca 100644 --- a/payloads/libpayload/libcbfs/cbfs_core.c +++ b/payloads/libpayload/libcbfs/cbfs_core.c @@ -62,8 +62,8 @@ const struct cbfs_header *cbfs_get_header(struct cbfs_media *media) if (media == CBFS_DEFAULT_MEDIA) { media = &default_media; if (init_default_cbfs_media(media) != 0) { - ERROR("Failed to initializee default media.\n"); - return NULL; + ERROR("Failed to initialize default media.\n"); + return CBFS_HEADER_INVALID_ADDRESS; } } @@ -103,7 +103,7 @@ struct cbfs_file *cbfs_get_file(struct cbfs_media *media, const char *name) if (media == CBFS_DEFAULT_MEDIA) { media = &default_media; if (init_default_cbfs_media(media) != 0) { - ERROR("Failed to initializee default media.\n"); + ERROR("Failed to initialize default media.\n"); return NULL; } } |