Commit a4dee9c9 authored by Samuel Tardieu's avatar Samuel Tardieu Committed by Greg Kroah-Hartman
Browse files

USB: cdc-acm: Remove obsolete predefined speeds array



Modern speed handling has been introduced in 2009 by commit
9b80fee1 (cdc_acm: Fix to use modern
speed interfaces) and the acm_tty_speed array has been unused since.

Signed-off-by: default avatarSamuel Tardieu <sam@rfc1149.net>
Acked-by: default avatarOliver Neukum <oliver@neukum.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae8d4879
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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)
{