From 0eb21ddcef8dc1ac9345e98a3384f01fa19494b1 Mon Sep 17 00:00:00 2001 From: Eric Sesterhenn Date: Sun, 25 Jun 2006 05:48:45 -0700 Subject: [PATCH] --- yaml --- r: 29767 b: refs/heads/master c: 969dd061d81d9e2bc7f954859452ac81cc639711 h: refs/heads/master i: 29765: d4df6f102365469cb035cadee174d1a48067b366 29763: 5ae9ac5bdfd6fab04b5505298d8f25396c1db503 29759: 606f6106102bb743c282e7f29c2caa46dd84a175 v: v3 --- [refs] | 2 +- trunk/drivers/char/cyclades.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index e7c50d3b0a05..a72d626a9298 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2aa92581fb13e04e1440e5041b412cc06c782e0e +refs/heads/master: 969dd061d81d9e2bc7f954859452ac81cc639711 diff --git a/trunk/drivers/char/cyclades.c b/trunk/drivers/char/cyclades.c index cc7acf877dc0..122e7a72a4e1 100644 --- a/trunk/drivers/char/cyclades.c +++ b/trunk/drivers/char/cyclades.c @@ -2833,9 +2833,8 @@ cy_write(struct tty_struct * tty, const unsigned char *buf, int count) return 0; } - if (!tty || !info->xmit_buf || !tmp_buf){ - return 0; - } + if (!info->xmit_buf || !tmp_buf) + return 0; CY_LOCK(info, flags); while (1) { @@ -2884,7 +2883,7 @@ cy_put_char(struct tty_struct *tty, unsigned char ch) if (serial_paranoia_check(info, tty->name, "cy_put_char")) return; - if (!tty || !info->xmit_buf) + if (!info->xmit_buf) return; CY_LOCK(info, flags);