Skip to contentSkip to conversation

tty: n_hdlc: Drop redundant error message

PATCH New Jean Delvare 1 participant 1 message Apr 25, 2014 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Slaby <[email protected]>
---
 drivers/tty/n_hdlc.c |    4 ----
 1 file changed, 4 deletions(-)
drivers/tty/n_hdlc.c +0 -4
@@ -952,8 +952,6 @@ static char hdlc_register_ok[] __initdat
 	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() */
Signature · 2 lines
Jean Delvare
SUSE L3 Support