]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Remove !tty check from free_tty_struct()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:47 +0000 (21:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 22:28:20 +0000 (14:28 -0800)
commit073cad5a320f136f0237428e43fe73146bf047ae
tree11d2d71154ee6f4bd40e56cff8cb0cf29fffc777
parentfeb0659e5c7682a7b0a2e641cad1b7467f5c1f4f
tty: Remove !tty check from free_tty_struct()

free_tty_struct() is never called with NULL tty; the two call sites
would already have faulted on earlier access.

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