aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hvc_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/hvc_console.c')
-rw-r--r--drivers/char/hvc_console.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
index dbee8bed0530..1d1bd34b7f12 100644
--- a/drivers/char/hvc_console.c
+++ b/drivers/char/hvc_console.c
@@ -320,10 +320,8 @@ static int hvc_open(struct tty_struct *tty, struct file * filp)
320 struct kobject *kobjp; 320 struct kobject *kobjp;
321 321
322 /* Auto increments kobject reference if found. */ 322 /* Auto increments kobject reference if found. */
323 if (!(hp = hvc_get_by_index(tty->index))) { 323 if (!(hp = hvc_get_by_index(tty->index)))
324 printk(KERN_WARNING "hvc_console: tty open failed, no vty associated with tty.\n");
325 return -ENODEV; 324 return -ENODEV;
326 }
327 325
328 spin_lock_irqsave(&hp->lock, flags); 326 spin_lock_irqsave(&hp->lock, flags);
329 /* Check and then increment for fast path open. */ 327 /* Check and then increment for fast path open. */