summaryrefslogtreecommitdiffstats
path: root/drivers/tty/cyclades.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-03-31 09:55:59 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-06 16:26:57 -0400
commit429b474990cb4e5e8cfe2352daf649d0599cccb6 (patch)
tree5a36a69be7d6c9ff069ce79576c62c77e582e84d /drivers/tty/cyclades.c
parent917162c936936a37c51265b3add3885a15e66a82 (diff)
tty: remove buf parameter from tty_name()
tty_name no longer uses the buf parameter, so remove it along with all the 64 byte stack buffers that used to be passed in. Mostly generated by the coccinelle script @depends on patch@ identifier buf; constant C; expression tty; @@ - char buf[C]; <+... - tty_name(tty, buf) + tty_name(tty) ...+> allmodconfig compiles, so I'm fairly confident the stack buffers weren't used for other purposes as well. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Reviewed-by: Peter Hurley <peter@hurleysoftware.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/cyclades.c')
-rw-r--r--drivers/tty/cyclades.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
index fd66f57390d0..87f6578c6f4a 100644
--- a/drivers/tty/cyclades.c
+++ b/drivers/tty/cyclades.c
@@ -2861,9 +2861,7 @@ static void cy_throttle(struct tty_struct *tty)
2861 unsigned long flags; 2861 unsigned long flags;
2862 2862
2863#ifdef CY_DEBUG_THROTTLE 2863#ifdef CY_DEBUG_THROTTLE
2864 char buf[64]; 2864 printk(KERN_DEBUG "cyc:throttle %s: %ld...ttyC%d\n", tty_name(tty),
2865
2866 printk(KERN_DEBUG "cyc:throttle %s: %ld...ttyC%d\n", tty_name(tty, buf),
2867 tty->ldisc.chars_in_buffer(tty), info->line); 2865 tty->ldisc.chars_in_buffer(tty), info->line);
2868#endif 2866#endif
2869 2867
@@ -2902,10 +2900,8 @@ static void cy_unthrottle(struct tty_struct *tty)
2902 unsigned long flags; 2900 unsigned long flags;
2903 2901
2904#ifdef CY_DEBUG_THROTTLE 2902#ifdef CY_DEBUG_THROTTLE
2905 char buf[64];
2906
2907 printk(KERN_DEBUG "cyc:unthrottle %s: %ld...ttyC%d\n", 2903 printk(KERN_DEBUG "cyc:unthrottle %s: %ld...ttyC%d\n",
2908 tty_name(tty, buf), tty_chars_in_buffer(tty), info->line); 2904 tty_name(tty), tty_chars_in_buffer(tty), info->line);
2909#endif 2905#endif
2910 2906
2911 if (serial_paranoia_check(info, tty->name, "cy_unthrottle")) 2907 if (serial_paranoia_check(info, tty->name, "cy_unthrottle"))