aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Kluin <[email protected]>2009-12-09 12:34:16 -0800
committerGreg Kroah-Hartman <[email protected]>2010-03-02 14:43:13 -0800
commitecfcbee729389bc47576695c529d351d60946ca7 (patch)
tree0ac333477339aa150704c308fdf34bc564ef5179
parentdb91340b2e874693f14e9e937152e7433d7ac753 (diff)
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]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Hendrik Brueckner <[email protected]> Cc: Christian Borntraeger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/char/hvc_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
index 4c3b59be286a..465185fc0f52 100644
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -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) {