the caller already makes sure that efi_process_key() is only called when
*inp has an escape character. No need to check that again.

Signed-off-by: Sascha Hauer <[email protected]>
---
 drivers/serial/efi-stdio.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/serial/efi-stdio.c b/drivers/serial/efi-stdio.c
index 7b943aaa3b..22e4e9635a 100644
--- a/drivers/serial/efi-stdio.c
+++ b/drivers/serial/efi-stdio.c
@@ -260,9 +260,6 @@ static int efi_process_key(struct efi_console_priv *priv, 
const char *inp)
 
        c = *inp;
 
-       if (c != 27)
-               return 0;
-
        inp++;
 
        if (*inp == '[')
-- 
2.30.2


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to