dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/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
..
Kconfig powerpc/powernv: Support for OPAL console 2011-09-20 16:09:54 +10:00
Makefile powerpc/powernv: Support for OPAL console 2011-09-20 16:09:54 +10:00
hvc_beat.c serial: Kill off NO_IRQ 2012-01-26 17:14:50 -08:00
hvc_bfin_jtag.c hvc: add Blackfin JTAG console support 2011-02-17 11:12:40 -08:00
hvc_console.c TTY: remove re-assignments to tty_driver members 2012-03-08 11:37:58 -08:00
hvc_console.h powerpc/pseries: Re-implement HVSI as part of hvc_vio 2011-06-29 17:48:35 +10:00
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 Fix common misspellings 2011-03-31 11:26:23 -03:00
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.c TTY: remove unneeded tty->index checks 2012-03-08 11:42:21 -08:00
hvsi_lib.c powerpc/powernv: Support for OPAL console 2011-09-20 16:09:54 +10:00