From: Julia Lawall Date: Sun, 7 Dec 2014 19:20:48 +0000 (+0100) Subject: TTY: fix misspelling of current function in string X-Git-Tag: v4.14-rc1~5937^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d6a5e4ce883be40c05dc4080d24fab0b432a9ec;p=platform%2Fkernel%2Flinux-rpi.git TTY: fix misspelling of current function in string 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index d9f85f9..b2d7600 100644 --- a/drivers/tty/amiserial.c +++ b/drivers/tty/amiserial.c @@ -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;