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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0667934567
commit
361746264b
@@ -952,8 +952,6 @@ static char hdlc_register_ok[] __initdata =
|
|||||||
KERN_INFO "N_HDLC line discipline registered.\n";
|
KERN_INFO "N_HDLC line discipline registered.\n";
|
||||||
static char hdlc_register_fail[] __initdata =
|
static char hdlc_register_fail[] __initdata =
|
||||||
KERN_ERR "error registering line discipline: %d\n";
|
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)
|
static int __init n_hdlc_init(void)
|
||||||
{
|
{
|
||||||
@@ -973,8 +971,6 @@ static int __init n_hdlc_init(void)
|
|||||||
else
|
else
|
||||||
printk(hdlc_register_fail, status);
|
printk(hdlc_register_fail, status);
|
||||||
|
|
||||||
if (status)
|
|
||||||
printk(hdlc_init_fail, status);
|
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
} /* end of init_module() */
|
} /* end of init_module() */
|
||||||
|
|||||||
Reference in New Issue
Block a user