diff options
-rw-r--r-- | net/irda/ircomm/ircomm_tty.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/irda/ircomm/ircomm_tty.c b/net/irda/ircomm/ircomm_tty.c index 811984d9324b..8b85d774e47f 100644 --- a/net/irda/ircomm/ircomm_tty.c +++ b/net/irda/ircomm/ircomm_tty.c | |||
@@ -496,9 +496,6 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp) | |||
496 | 496 | ||
497 | IRDA_DEBUG(0, "%s()\n", __func__ ); | 497 | IRDA_DEBUG(0, "%s()\n", __func__ ); |
498 | 498 | ||
499 | if (!tty) | ||
500 | return; | ||
501 | |||
502 | IRDA_ASSERT(self != NULL, return;); | 499 | IRDA_ASSERT(self != NULL, return;); |
503 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 500 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
504 | 501 | ||
@@ -1007,9 +1004,6 @@ static void ircomm_tty_hangup(struct tty_struct *tty) | |||
1007 | IRDA_ASSERT(self != NULL, return;); | 1004 | IRDA_ASSERT(self != NULL, return;); |
1008 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 1005 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
1009 | 1006 | ||
1010 | if (!tty) | ||
1011 | return; | ||
1012 | |||
1013 | /* ircomm_tty_flush_buffer(tty); */ | 1007 | /* ircomm_tty_flush_buffer(tty); */ |
1014 | ircomm_tty_shutdown(self); | 1008 | ircomm_tty_shutdown(self); |
1015 | 1009 | ||