diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-10 05:13:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-27 22:28:20 (GMT) |
commit | a99cc5d9954651ac7402dcd40b133848303ba596 (patch) | |
tree | 11d2d71154ee6f4bd40e56cff8cb0cf29fffc777 /drivers | |
parent | c8b710b3e4348119924051551b836c94835331b1 (diff) | |
download | linux-a99cc5d9954651ac7402dcd40b133848303ba596.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tty/tty_io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index c9f2365..a59930e 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -170,8 +170,6 @@ static void release_tty(struct tty_struct *tty, int idx); void free_tty_struct(struct tty_struct *tty) { - if (!tty) - return; tty_ldisc_deinit(tty); put_device(tty->dev); kfree(tty->write_buf); |