projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8b710b
)
tty: Remove !tty check from free_tty_struct()
author
Peter Hurley
<peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:47 +0000
(21:13 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 22:28:20 +0000
(14:28 -0800)
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
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index
c9f2365
..
a59930e
100644
(file)
--- 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);