ath6kl: Rearrange the variable and the value position in IF condition
authorRaja Mani <rmani@qca.qualcomm.com>
Tue, 19 Jul 2011 13:57:31 +0000 (19:27 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Aug 2011 16:45:21 +0000 (19:45 +0300)
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/htc.c

index 9d9948ed18df5c87109b6ad1dc3cc5a8c6fac981..5580e22c19f4e2025d1dd9ab9585b861afb30c01 100644 (file)
@@ -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 {