summaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-01-08 10:01:25 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-09 05:13:38 +0100
commit2087ff3ec56eba9bccd3b3a9d4d42670b1543f5d (patch)
tree10c0604f610a583a6ad7077453799a15e5400cb5 /drivers/atm
parent[PATCH] frv: miscellaneous changes (diff)
downloadlinux-2087ff3ec56eba9bccd3b3a9d4d42670b1543f5d.tar.xz
linux-2087ff3ec56eba9bccd3b3a9d4d42670b1543f5d.zip
[PATCH] frv: fix uninitialised variable in atm nicstar driver
Fix an uninitialised variable warning in the atm nicstar driver. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/atm')
-rw-r--r--drivers/atm/nicstar.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c
index c57e20dcb0f8..074abc81ec3d 100644
--- a/drivers/atm/nicstar.c
+++ b/drivers/atm/nicstar.c
@@ -2126,8 +2126,7 @@ static void process_rsq(ns_dev *card)
if (!ns_rsqe_valid(card->rsq.next))
return;
- while (ns_rsqe_valid(card->rsq.next))
- {
+ do {
dequeue_rx(card, card->rsq.next);
ns_rsqe_init(card->rsq.next);
previous = card->rsq.next;
@@ -2135,7 +2134,7 @@ static void process_rsq(ns_dev *card)
card->rsq.next = card->rsq.base;
else
card->rsq.next++;
- }
+ } while (ns_rsqe_valid(card->rsq.next));
writel((((u32) previous) - ((u32) card->rsq.base)),
card->membase + RSQH);
}