diff options
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r-- | drivers/char/vt.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 5dfbfa7d7606..0c80c68cd047 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -2129,11 +2129,7 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co | |||
2129 | currcons = vc->vc_num; | 2129 | currcons = vc->vc_num; |
2130 | if (!vc_cons_allocated(currcons)) { | 2130 | if (!vc_cons_allocated(currcons)) { |
2131 | /* could this happen? */ | 2131 | /* could this happen? */ |
2132 | static int error = 0; | 2132 | printk_once("con_write: tty %d not allocated\n", currcons+1); |
2133 | if (!error) { | ||
2134 | error = 1; | ||
2135 | printk("con_write: tty %d not allocated\n", currcons+1); | ||
2136 | } | ||
2137 | release_console_sem(); | 2133 | release_console_sem(); |
2138 | return 0; | 2134 | return 0; |
2139 | } | 2135 | } |