From: Jiri Slaby Date: Wed, 20 Apr 2011 08:43:16 +0000 (+0200) Subject: TTY: serial_core, remove invalid test X-Git-Tag: v3.0-rc1~338^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32ad3a77b256948a326c3f68db6acaad2b6953e7;p=pandora-kernel.git 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 Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed