diff options
author | Raja Mani <rmani@qca.qualcomm.com> | 2011-07-19 15:57:31 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 18:45:21 +0200 |
commit | 5ba3ee48f2e913037520486f7492c88c517bf387 (patch) | |
tree | b3401d7b4990aa0ef2765591d91a4d1099e05042 | |
parent | ath6kl: Print bad trailer data only when htc fails to parse trailer info (diff) | |
download | linux-5ba3ee48f2e913037520486f7492c88c517bf387.tar.xz linux-5ba3ee48f2e913037520486f7492c88c517bf387.zip |
ath6kl: Rearrange the variable and the value position in IF condition
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 9d9948ed18df..5580e22c19f4 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c @@ -1229,7 +1229,7 @@ static void htc_proc_cred_rpt(struct htc_target *target, endpoint->ep_st.cred_rpt_from_other += 1; } - if (ENDPOINT_0 == rpt->eid) + if (rpt->eid == ENDPOINT_0) /* always give endpoint 0 credits back */ endpoint->cred_dist.credits += rpt->credits; else { |