]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix misplaced semicolon on rate control
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 29 Oct 2009 00:19:06 +0000 (20:19 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Oct 2009 19:50:25 +0000 (15:50 -0400)
commit6d0985ea5f87e2cadd8fa464f470adbdb139de2b
tree0fde7a0c4d221306506e0789f841452fadd8d30b
parent0adbedd21668cc4c72db292a103d9dacbdcc300c
ath9k: fix misplaced semicolon on rate control

The patch 04e54758:

ath9k: downgrade assert in rc.c for invalid rate

downgraded an ASSERT to a WARN_ON() but also misplaced a
semicolon at the end of the second check. What this did
was force the rate control code to always return the rate
even if we should have warned about it. Since this should
not have happened anymore anyway this fix isn't critical
as the proper rate would have been returned anyway.

Cc: stable@kernel.org
Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/rc.c