projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ca4b20
)
staging: dgnc: remove redundant variable null check
author
Daeseok Youn
<daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:13:14 +0000
(15:13 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:06:09 +0000
(19:06 +0200)
The unit struct(un_t) was not used in dgnc_tty_hangup().
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_tty.c
b/drivers/staging/dgnc/dgnc_tty.c
index 13870413c7b658a71e012d2970fb78187bb39f8e..b33b07c6fd68693ba7e20b56421bd2b9a53ada24 100644
(file)
--- a/
drivers/staging/dgnc/dgnc_tty.c
+++ b/
drivers/staging/dgnc/dgnc_tty.c
@@
-1289,15
+1289,9
@@
static int dgnc_block_til_ready(struct tty_struct *tty,
*/
static void dgnc_tty_hangup(struct tty_struct *tty)
{
- struct un_t *un;
-
if (!tty || tty->magic != TTY_MAGIC)
return;
- un = tty->driver_data;
- if (!un || un->magic != DGNC_UNIT_MAGIC)
- return;
-
/* flush the transmit queues */
dgnc_tty_flush_buffer(tty);
}