mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
expo: Correct some swallowed errors in scene
Return the reported error, rather than assuming it is -ENOMEM Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fd6073ac9f
commit
9767de7b46
1 changed files with 3 additions and 3 deletions
|
@ -137,7 +137,7 @@ int scene_img(struct scene *scn, const char *name, uint id, char *data,
|
|||
sizeof(struct scene_obj_img),
|
||||
(struct scene_obj **)&img);
|
||||
if (ret < 0)
|
||||
return log_msg_ret("obj", -ENOMEM);
|
||||
return log_msg_ret("obj", ret);
|
||||
|
||||
img->data = data;
|
||||
|
||||
|
@ -157,7 +157,7 @@ int scene_txt(struct scene *scn, const char *name, uint id, uint str_id,
|
|||
sizeof(struct scene_obj_txt),
|
||||
(struct scene_obj **)&txt);
|
||||
if (ret < 0)
|
||||
return log_msg_ret("obj", -ENOMEM);
|
||||
return log_msg_ret("obj", ret);
|
||||
|
||||
txt->str_id = str_id;
|
||||
|
||||
|
@ -183,7 +183,7 @@ int scene_txt_str(struct scene *scn, const char *name, uint id, uint str_id,
|
|||
sizeof(struct scene_obj_txt),
|
||||
(struct scene_obj **)&txt);
|
||||
if (ret < 0)
|
||||
return log_msg_ret("obj", -ENOMEM);
|
||||
return log_msg_ret("obj", ret);
|
||||
|
||||
txt->str_id = str_id;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue