mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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>
This commit is contained in:
parent
c8b710b3e4
commit
a99cc5d995
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue