]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
tty: cleanup the panic message
authorCong Ding <dinggnu@gmail.com>
Sat, 12 Jan 2013 04:01:21 +0000 (05:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 06:49:36 +0000 (22:49 -0800)
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>
drivers/tty/pty.c

index 32d027c303aa04066d12c35d67e55f69b2805cdf..916825f984a989575a6a59d9f7e5bbaa77d35f65 100644 (file)
@@ -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");
 }