]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/tty/tty_io.c
tty: Remove !tty condition from __proc_set_tty()
authorPeter Hurley <peter@hurleysoftware.com>
Thu, 16 Oct 2014 18:59:46 +0000 (14:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 00:26:13 +0000 (16:26 -0800)
commitae28fa721683f29105d6894c6c1482bf5a470d3b
tree1e19790ac102a09ee94c7d88b1f4705e24f8afa3
parent5b239542207d83687489a22e6dd93ffef1ad9eb9
tty: Remove !tty condition from __proc_set_tty()

The tty parameter to __proc_set_tty() cannot be NULL; all
call sites have already dereferenced tty.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c