Skip to content

Commit

Permalink
USB: cdc-acm: Remove obsolete predefined speeds array
Browse files Browse the repository at this point in the history
Modern speed handling has been introduced in 2009 by commit
9b80fee (cdc_acm: Fix to use modern
speed interfaces) and the acm_tty_speed array has been unused since.

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Acked-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Samuel Tardieu authored and Greg Kroah-Hartman committed Mar 15, 2013
1 parent ae8d487 commit a4dee9c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,14 +840,6 @@ static int acm_tty_ioctl(struct tty_struct *tty,
return rv;
}

static const __u32 acm_tty_speed[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600,
1200, 1800, 2400, 4800, 9600, 19200, 38400,
57600, 115200, 230400, 460800, 500000, 576000,
921600, 1000000, 1152000, 1500000, 2000000,
2500000, 3000000, 3500000, 4000000
};

static void acm_tty_set_termios(struct tty_struct *tty,
struct ktermios *termios_old)
{
Expand Down

0 comments on commit a4dee9c

Please sign in to comment.