diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-30 03:53:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:44 -0400 |
commit | 1a4e2351e7fcf2d10bb5524b0ace7797ffad4d98 (patch) | |
tree | 7c5d9bed6f4252900a42779c13a5d5dd3c625310 /drivers/char | |
parent | 709107fcd3c4ad82ff7c8137c27aa951d671706f (diff) |
cyclades.c: fix sparse shadowed variable warnings
Nested min() macros.
drivers/char/cyclades.c:2750:7: warning: symbol '_x' shadows an earlier one
drivers/char/cyclades.c:2750:7: originally declared here
drivers/char/cyclades.c:2750:7: warning: symbol '_x' shadows an earlier one
drivers/char/cyclades.c:2750:7: originally declared here
drivers/char/cyclades.c:2750:7: warning: symbol '_y' shadows an earlier one
drivers/char/cyclades.c:2750:7: originally declared here
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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; |