1
linux/drivers/tty/hvc
Jiri Slaby 410235fd4d TTY: remove unneeded tty->index checks
Checking if tty->index is in bounds is not needed. The tty has the
index set in the initial open. This is done in get_tty_driver. And it
can be only in interval <0,driver->num).

So remove the tests which check exactly this interval. Some are
left untouched as they check against the current backing device count.
(Leaving apart that the check is racy in most of the cases.)

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-03-08 11:42:21 -08:00
..
hvc_beat.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_bfin_jtag.c
hvc_console.c TTY: remove re-assignments to tty_driver members 2012-03-08 11:37:58 -08:00
hvc_console.h
hvc_dcc.c tty: hvc_dcc: Fix duplicate character inputs 2011-11-15 12:02:13 -08:00
hvc_irq.c TTY: irq: Remove IRQF_DISABLED 2011-09-22 16:08:57 -07:00
hvc_iseries.c tty: Add module.h to drivers/tty users who just expect it there. 2011-10-31 19:31:27 -04:00
hvc_iucv.c
hvc_opal.c powerpc: fix building hvc_opal.c 2011-11-06 22:21:18 -08:00
hvc_rtas.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_tile.c
hvc_udbg.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_vio.c tty: Add module.h to drivers/tty users who just expect it there. 2011-10-31 19:31:27 -04:00
hvc_xen.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvcs.c TTY: remove unneeded tty->index checks 2012-03-08 11:42:21 -08:00
hvsi_lib.c
hvsi.c TTY: remove unneeded tty->index checks 2012-03-08 11:42:21 -08:00
Kconfig
Makefile