diff options
-rw-r--r-- | drivers/tty/nozomi.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index afdd7732d925..2dff19796157 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c | |||
@@ -1679,12 +1679,6 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer, | |||
1679 | 1679 | ||
1680 | rval = kfifo_in(&port->fifo_ul, (unsigned char *)buffer, count); | 1680 | rval = kfifo_in(&port->fifo_ul, (unsigned char *)buffer, count); |
1681 | 1681 | ||
1682 | /* notify card */ | ||
1683 | if (unlikely(dc == NULL)) { | ||
1684 | DBG1("No device context?"); | ||
1685 | goto exit; | ||
1686 | } | ||
1687 | |||
1688 | spin_lock_irqsave(&dc->spin_mutex, flags); | 1682 | spin_lock_irqsave(&dc->spin_mutex, flags); |
1689 | /* CTS is only valid on the modem channel */ | 1683 | /* CTS is only valid on the modem channel */ |
1690 | if (port == &(dc->port[PORT_MDM])) { | 1684 | if (port == &(dc->port[PORT_MDM])) { |
@@ -1700,7 +1694,6 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer, | |||
1700 | } | 1694 | } |
1701 | spin_unlock_irqrestore(&dc->spin_mutex, flags); | 1695 | spin_unlock_irqrestore(&dc->spin_mutex, flags); |
1702 | 1696 | ||
1703 | exit: | ||
1704 | return rval; | 1697 | return rval; |
1705 | } | 1698 | } |
1706 | 1699 | ||