Jiri Slaby 32ad3a77b2 TTY: serial_core, remove invalid test
tty->index (named here as line) is set up in initialize_tty_struct.
The value is checked in get_tty_driver for the found driver as:
	if (device < base || device >= base + p->num)
		continue;
	*index = device - base;

So index/line can never be more than driver->num. Hence remove this
test from uart_open.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-04-25 14:19:11 -07:00
..
2011-03-31 11:26:23 -03:00
2011-02-24 11:36:31 -08:00
2011-02-24 11:36:31 -08:00
2011-03-31 11:26:23 -03:00
2011-02-17 11:16:15 -08:00
2011-03-31 11:26:23 -03:00
2011-03-30 21:12:24 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-02-28 12:06:20 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00