]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
TTY: fix misspelling of current function in string
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 7 Dec 2014 19:20:48 +0000 (20:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jan 2015 22:38:15 +0000 (14:38 -0800)
Replace the last argument of serial_paranoia_check by the actual function
name.

This was done using Coccinelle, including the use of Levenshtein distance,
as proposed by Rasmus Villemoes.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c

index d9f85f95eb2a5bcbd24614da72aa5bc47e4af93e..b2d76005595225ebd9f1412bf250ad768132d660 100644 (file)
@@ -931,7 +931,7 @@ static void rs_send_xchar(struct tty_struct *tty, char ch)
        struct serial_state *info = tty->driver_data;
         unsigned long flags;
 
-       if (serial_paranoia_check(info, tty->name, "rs_send_char"))
+       if (serial_paranoia_check(info, tty->name, "rs_send_xchar"))
                return;
 
        info->x_char = ch;