rt2x00: Limit TX done looping to number of TX ring entries
authorIvo van Doorn <IvDoorn@gmail.com>
Mon, 14 Jun 2010 20:13:37 +0000 (22:13 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jun 2010 20:02:20 +0000 (16:02 -0400)
commite6474c3c6d4839c73f363a0f44a347d804534758
treefece688bbb2d95a9c785ae175125b96d2b7c102e
parenta5ea2f0255fe48af4864b41385fc28b4bc785ba6
rt2x00: Limit TX done looping to number of TX ring entries

Similar to rt2800pci, remove the check for duplicate
register reading, and instead limit the for-loop to
the maximum number of TX entries inside a queue.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt61pci.c