[PATCH 06/25] efi-stdio: remove unnecessary check

Sascha Hauer s.hauer at pengutronix.de
Mon Dec 13 13:08:46 PST 2021


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 <s.hauer at pengutronix.de>
---
 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




More information about the barebox mailing list