]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: correct interrupt storm warning
authorBob Copeland <me@bobcopeland.com>
Tue, 28 Apr 2009 02:18:10 +0000 (22:18 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:50 +0000 (15:14 -0400)
commit44ae3a570be10973c949c6c7c8ef513e6e8f4d13
treeff2c1efd231d9c5d241be1d6b1374d07791b8122
parentd38d1ff361c8ada53c34d6ed43de93128aa5bb3f
ath5k: correct interrupt storm warning

Ben Greear points out that the "too many interrupts" message will
never print in the intended case since the interrupt counter
will be -1 after the loop.  Change it to pre-decrement so it will
be 0 on the thousandth iteration.

Cc: Ben Greear <greearb@candelatech.com>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c