forked from luck/tmp_suning_uos_patched
hvc_console: fix test on unsigned in hvc_console_print()
vtermnos[] is unsigned, so this test was wrong. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
db91340b2e
commit
ecfcbee729
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user