summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2025-05-02 08:46:52 -0600
committerSimon Glass <[email protected]>2025-05-30 09:49:32 +0100
commit8d7ae52d7735ffecf34fa8b2657ee2fcfaac51b6 (patch)
treebf18ccb08e433a76d663f7d0e23c9aade5ab9ac9 /boot
parent5bca4798971a1ea32c43994e35f63f1964b2ddf6 (diff)
expo: Drop the render from expo_poll()
Within tests it is useful to be able to control rendering of the expo. Drop the automatic call to expo_render() within expo_poll() and adjust its callers to handle this instead. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/cedit.c4
-rw-r--r--boot/expo.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/boot/cedit.c b/boot/cedit.c
index 8faf230a9e2..56dc7c6af15 100644
--- a/boot/cedit.c
+++ b/boot/cedit.c
@@ -219,6 +219,10 @@ int cedit_run(struct expo *exp)
do {
struct expo_action act;
+ ret = expo_render(exp);
+ if (ret)
+ return log_msg_ret("cer", ret);
+
ret = expo_poll(exp, &act);
if (!ret)
cedit_do_action(exp, scn, vid_priv, &act);
diff --git a/boot/expo.c b/boot/expo.c
index ee8ffaf8920..94413acd381 100644
--- a/boot/expo.c
+++ b/boot/expo.c
@@ -320,10 +320,6 @@ int expo_poll(struct expo *exp, struct expo_action *act)
{
int ichar, key, ret;
- ret = expo_render(exp);
- if (ret)
- return log_msg_ret("ere", ret);
-
ichar = cli_ch_process(&exp->cch, 0);
if (!ichar) {
int i;