diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/n_hdlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/n_hdlc.c b/drivers/char/n_hdlc.c index e8332f305d72..82bcfb9c839a 100644 --- a/drivers/char/n_hdlc.c +++ b/drivers/char/n_hdlc.c | |||
@@ -229,7 +229,7 @@ static void n_hdlc_release(struct n_hdlc *n_hdlc) | |||
229 | wake_up_interruptible (&tty->read_wait); | 229 | wake_up_interruptible (&tty->read_wait); |
230 | wake_up_interruptible (&tty->write_wait); | 230 | wake_up_interruptible (&tty->write_wait); |
231 | 231 | ||
232 | if (tty != NULL && tty->disc_data == n_hdlc) | 232 | if (tty->disc_data == n_hdlc) |
233 | tty->disc_data = NULL; /* Break the tty->n_hdlc link */ | 233 | tty->disc_data = NULL; /* Break the tty->n_hdlc link */ |
234 | 234 | ||
235 | /* Release transmit and receive buffers */ | 235 | /* Release transmit and receive buffers */ |