From 8d7ae52d7735ffecf34fa8b2657ee2fcfaac51b6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 2 May 2025 08:46:52 -0600 Subject: 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 --- boot/cedit.c | 4 ++++ boot/expo.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'boot') 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; -- cgit v1.3.1