ath9k: fix misplaced semicolon on rate control

The patch e43419f9:

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>

authored by Luis R. Rodriguez and committed by John W. Linville e55ea2b1 9a3f4511

+1 -1
+1 -1
drivers/net/wireless/ath/ath9k/rc.c
··· 679 679 return rate; 680 680 681 681 if (rate_table->info[rate].valid_single_stream && 682 - !(ath_rc_priv->ht_cap & WLAN_RC_DS_FLAG)); 682 + !(ath_rc_priv->ht_cap & WLAN_RC_DS_FLAG)) 683 683 return rate; 684 684 685 685 /* This should not happen */