|
@@ -2031,7 +2031,7 @@ static int mgsl_put_char(struct tty_struct *tty, unsigned char ch)
|
|
if (mgsl_paranoia_check(info, tty->name, "mgsl_put_char"))
|
|
if (mgsl_paranoia_check(info, tty->name, "mgsl_put_char"))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- if (!tty || !info->xmit_buf)
|
|
|
|
|
|
+ if (!info->xmit_buf)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
spin_lock_irqsave(&info->irq_spinlock, flags);
|
|
spin_lock_irqsave(&info->irq_spinlock, flags);
|
|
@@ -2121,7 +2121,7 @@ static int mgsl_write(struct tty_struct * tty,
|
|
if (mgsl_paranoia_check(info, tty->name, "mgsl_write"))
|
|
if (mgsl_paranoia_check(info, tty->name, "mgsl_write"))
|
|
goto cleanup;
|
|
goto cleanup;
|
|
|
|
|
|
- if (!tty || !info->xmit_buf)
|
|
|
|
|
|
+ if (!info->xmit_buf)
|
|
goto cleanup;
|
|
goto cleanup;
|
|
|
|
|
|
if ( info->params.mode == MGSL_MODE_HDLC ||
|
|
if ( info->params.mode == MGSL_MODE_HDLC ||
|