From d9a14e93dc8d54159475d02165b11942890b104d Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Thu, 7 Sep 2006 15:18:08 -0500 Subject: [PATCH] --- yaml --- r: 34103 b: refs/heads/master c: 87fd7724d4022913ae8dbee3ed55cd04f2c316a6 h: refs/heads/master i: 34101: 91591edd56907cdbda2ede8f81760f3c85c49122 34099: 2bc4b37ff768cd66d930afd361c915193932559f 34095: 906e63c18205cd47fc3b52bb83f991ef51ba0bd9 v: v3 --- [refs] | 2 +- trunk/drivers/char/hvc_console.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 9b76bb179a97..cf7de38396b9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 06e6d290ac7a9fb6fcec3a2207988163709f06aa +refs/heads/master: 87fd7724d4022913ae8dbee3ed55cd04f2c316a6 diff --git a/trunk/drivers/char/hvc_console.c b/trunk/drivers/char/hvc_console.c index dbee8bed0530..1d1bd34b7f12 100644 --- a/trunk/drivers/char/hvc_console.c +++ b/trunk/drivers/char/hvc_console.c @@ -320,10 +320,8 @@ static int hvc_open(struct tty_struct *tty, struct file * filp) struct kobject *kobjp; /* Auto increments kobject reference if found. */ - if (!(hp = hvc_get_by_index(tty->index))) { - printk(KERN_WARNING "hvc_console: tty open failed, no vty associated with tty.\n"); + if (!(hp = hvc_get_by_index(tty->index))) return -ENODEV; - } spin_lock_irqsave(&hp->lock, flags); /* Check and then increment for fast path open. */