summaryrefslogtreecommitdiffstats
path: root/drivers/tty/pty.c
diff options
context:
space:
mode:
authorCong Ding <dinggnu@gmail.com>2013-01-12 05:01:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-16 07:49:36 +0100
commit82f8c35f86a878a504f92559d631ea03f0f62152 (patch)
tree106870a98a9386bee731d921d94142a1f06cdd95 /drivers/tty/pty.c
parentRevert "n_gsm.c: add tx_lock in gsm_send" (diff)
downloadlinux-82f8c35f86a878a504f92559d631ea03f0f62152.tar.xz
linux-82f8c35f86a878a504f92559d631ea03f0f62152.zip
tty: cleanup the panic message
the "\n" in panic message is excess, so we remove it in tty/pty.c as what it is used in other places. Signed-off-by: Cong Ding <dinggnu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/pty.c')
-rw-r--r--drivers/tty/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index 32d027c303aa..916825f984a9 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -795,7 +795,7 @@ static void __init unix98_pty_init(void)
cdev_init(&ptmx_cdev, &ptmx_fops);
if (cdev_add(&ptmx_cdev, MKDEV(TTYAUX_MAJOR, 2), 1) ||
register_chrdev_region(MKDEV(TTYAUX_MAJOR, 2), 1, "/dev/ptmx") < 0)
- panic("Couldn't register /dev/ptmx driver\n");
+ panic("Couldn't register /dev/ptmx driver");
device_create(tty_class, NULL, MKDEV(TTYAUX_MAJOR, 2), NULL, "ptmx");
}