summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 10:22:27 -0600
committerTom Rini <trini@konsulko.com>2023-07-14 12:54:50 -0400
commitdef898c458e65a71fb64cda370b4281cd026e48c (patch)
treefaea7eccfc9db4cee0dbcf4b3675b0d6acc5ae23 /boot
parentd2043b5682558e81aa699ec5c5322a08d577aa86 (diff)
downloadu-boot-def898c458e65a71fb64cda370b4281cd026e48c.tar.gz
u-boot-def898c458e65a71fb64cda370b4281cd026e48c.tar.bz2
u-boot-def898c458e65a71fb64cda370b4281cd026e48c.zip
expo: Convert to using a string ID for the scene title
This is easier to deal with if it uses the existing string handling, since we will be able to use translations, etc. in the future. Update it to use an ID instead of a string. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r--boot/scene.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/boot/scene.c b/boot/scene.c
index 030f6aa2a0..d2f77c008c 100644
--- a/boot/scene.c
+++ b/boot/scene.c
@@ -65,16 +65,12 @@ void scene_destroy(struct scene *scn)
scene_obj_destroy(obj);
free(scn->name);
- free(scn->title);
free(scn);
}
-int scene_title_set(struct scene *scn, const char *title)
+int scene_title_set(struct scene *scn, uint id)
{
- free(scn->title);
- scn->title = strdup(title);
- if (!scn->title)
- return log_msg_ret("tit", -ENOMEM);
+ scn->title_id = id;
return 0;
}