hvc_console: Fix test on unsigned in hvc_console_print()
PATCH 1/1 hvc_console: Fix test on unsigned in hvc_console_print()
vtermnos[] is unsigned, so this test was wrong.
Signed-off-by Roel Kluin <[email protected]>
---
drivers/char/hvc_console.c +1 -1
@@ -146,7 +146,7 @@ static void hvc_console_print(struct console *co, const char *b,return ;/* This console adapter was removed so it is not usable. */ -if (vtermnos[index] <0 ) +if (vtermnos[index] ==-1 )return ;while (count >0 || i >0 ) {