diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/cyclades.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index 23312f244545..028db1b8fc4e 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c | |||
@@ -2747,8 +2747,8 @@ static int cy_write(struct tty_struct *tty, const unsigned char *buf, int count) | |||
2747 | 2747 | ||
2748 | spin_lock_irqsave(&info->card->card_lock, flags); | 2748 | spin_lock_irqsave(&info->card->card_lock, flags); |
2749 | while (1) { | 2749 | while (1) { |
2750 | c = min(count, min((int)(SERIAL_XMIT_SIZE - info->xmit_cnt - 1), | 2750 | c = min(count, (int)(SERIAL_XMIT_SIZE - info->xmit_cnt - 1)); |
2751 | (int)(SERIAL_XMIT_SIZE - info->xmit_head))); | 2751 | c = min(c, (int)(SERIAL_XMIT_SIZE - info->xmit_head)); |
2752 | 2752 | ||
2753 | if (c <= 0) | 2753 | if (c <= 0) |
2754 | break; | 2754 | break; |