aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2010-04-15 08:17:07 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:32:01 -0400
commit103823db62ffca028c7a214c80266519d2ea7d8d (patch)
tree81542fd976bcf62c440d7533ec837e9c95e029d6
parent2fddd880668ee124cb56429f458b74d2772f6cb6 (diff)
p54pci: fix serious sparse warning
This patch fixes a bug which was just recently introduced by ("p54pci: prevent stuck rx-ring on slow system"). make M=drivers/net/wireless/p54 C=2 CF=-D__CHECK_ENDIAN__ CHECK drivers/net/wireless/p54/p54pci.c drivers/net/wireless/p54/p54pci.c:143:11: warning: cast to restricted __le32 CC [M] drivers/net/wireless/p54/p54pci.o Reported-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/p54/p54pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c
index aa29663bf6c9..0a516c8efd20 100644
--- a/drivers/net/wireless/p54/p54pci.c
+++ b/drivers/net/wireless/p54/p54pci.c
@@ -139,7 +139,7 @@ static void p54p_refill_rx_ring(struct ieee80211_hw *dev,
139 139
140 idx = le32_to_cpu(ring_control->host_idx[ring_index]); 140 idx = le32_to_cpu(ring_control->host_idx[ring_index]);
141 limit = idx; 141 limit = idx;
142 limit -= le32_to_cpu(index); 142 limit -= index;
143 limit = ring_limit - limit; 143 limit = ring_limit - limit;
144 144
145 i = idx % ring_limit; 145 i = idx % ring_limit;