提交 2087ff3e 编写于 作者: D David Howells 提交者: Linus Torvalds

[PATCH] frv: fix uninitialised variable in atm nicstar driver

Fix an uninitialised variable warning in the atm nicstar driver.
Signed-off-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 41be6aef
...@@ -2126,8 +2126,7 @@ static void process_rsq(ns_dev *card) ...@@ -2126,8 +2126,7 @@ static void process_rsq(ns_dev *card)
if (!ns_rsqe_valid(card->rsq.next)) if (!ns_rsqe_valid(card->rsq.next))
return; return;
while (ns_rsqe_valid(card->rsq.next)) do {
{
dequeue_rx(card, card->rsq.next); dequeue_rx(card, card->rsq.next);
ns_rsqe_init(card->rsq.next); ns_rsqe_init(card->rsq.next);
previous = card->rsq.next; previous = card->rsq.next;
...@@ -2135,7 +2134,7 @@ static void process_rsq(ns_dev *card) ...@@ -2135,7 +2134,7 @@ static void process_rsq(ns_dev *card)
card->rsq.next = card->rsq.base; card->rsq.next = card->rsq.base;
else else
card->rsq.next++; card->rsq.next++;
} } while (ns_rsqe_valid(card->rsq.next));
writel((((u32) previous) - ((u32) card->rsq.base)), writel((((u32) previous) - ((u32) card->rsq.base)),
card->membase + RSQH); card->membase + RSQH);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册