cbfs: Add macro CBFS_LOAD_ERROR for returning failure in case of cbfs_load_*
For all cbfs_load_* functions, use CBFS_LOAD_ERROR macro instead of (void *)-1 BUG=chrome-os-partner:32684 BRANCH=None TEST=Compiles successfully Change-Id: I85aa890866b91e38614bd0eb324e072104573006 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/221674 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
49487e5af4
commit
3d5b47e836
2 changed files with 7 additions and 5 deletions
|
|
@ -52,6 +52,8 @@
|
|||
|
||||
#include <cbfs_core.h>
|
||||
|
||||
#define CBFS_LOAD_ERROR ((void *)-1)
|
||||
|
||||
int cbfs_execute_stage(struct cbfs_media *media, const char *name);
|
||||
void *cbfs_load_optionrom(struct cbfs_media *media, uint16_t vendor,
|
||||
uint16_t device, void * dest);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue