diff options
Diffstat (limited to 'drivers/char/synclink_gt.c')
-rw-r--r-- | drivers/char/synclink_gt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index b4d1f4eea435..b4f1a5a435aa 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c | |||
@@ -870,7 +870,7 @@ static int write(struct tty_struct *tty, | |||
870 | goto cleanup; | 870 | goto cleanup; |
871 | DBGINFO(("%s write count=%d\n", info->device_name, count)); | 871 | DBGINFO(("%s write count=%d\n", info->device_name, count)); |
872 | 872 | ||
873 | if (!tty || !info->tx_buf) | 873 | if (!info->tx_buf) |
874 | goto cleanup; | 874 | goto cleanup; |
875 | 875 | ||
876 | if (count > info->max_frame_size) { | 876 | if (count > info->max_frame_size) { |
@@ -924,7 +924,7 @@ static void put_char(struct tty_struct *tty, unsigned char ch) | |||
924 | if (sanity_check(info, tty->name, "put_char")) | 924 | if (sanity_check(info, tty->name, "put_char")) |
925 | return; | 925 | return; |
926 | DBGINFO(("%s put_char(%d)\n", info->device_name, ch)); | 926 | DBGINFO(("%s put_char(%d)\n", info->device_name, ch)); |
927 | if (!tty || !info->tx_buf) | 927 | if (!info->tx_buf) |
928 | return; | 928 | return; |
929 | spin_lock_irqsave(&info->lock,flags); | 929 | spin_lock_irqsave(&info->lock,flags); |
930 | if (!info->tx_active && (info->tx_count < info->max_frame_size)) | 930 | if (!info->tx_active && (info->tx_count < info->max_frame_size)) |