diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-25 13:02:13 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 23:31:20 +0400 |
commit | 361746264b5e875e9b3c6f5b844accfe629e28bb (patch) | |
tree | 7eb53f018adb9eafb137330001d3b928ae000ac4 /drivers/tty/n_hdlc.c | |
parent | 0667934567a9d05fad5bdf2ca0546b04a1e64dfe (diff) | |
download | linux-361746264b5e875e9b3c6f5b844accfe629e28bb.tar.xz |
tty: n_hdlc: Drop redundant error message
On initialization failure, an error message is already printed with
level KERN_ERR, no need to print another one with level KERN_INFO.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_hdlc.c')
-rw-r--r-- | drivers/tty/n_hdlc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/n_hdlc.c b/drivers/tty/n_hdlc.c index 1b2db9a3038c..ef42942a9390 100644 --- a/drivers/tty/n_hdlc.c +++ b/drivers/tty/n_hdlc.c @@ -952,8 +952,6 @@ static char hdlc_register_ok[] __initdata = KERN_INFO "N_HDLC line discipline registered.\n"; static char hdlc_register_fail[] __initdata = KERN_ERR "error registering line discipline: %d\n"; -static char hdlc_init_fail[] __initdata = - KERN_INFO "N_HDLC: init failure %d\n"; static int __init n_hdlc_init(void) { @@ -973,8 +971,6 @@ static int __init n_hdlc_init(void) else printk(hdlc_register_fail, status); - if (status) - printk(hdlc_init_fail, status); return status; } /* end of init_module() */ |