rtlwifi: rtl8188ee: missing curly braces in handle_branch1()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Feb 2015 13:24:51 +0000 (16:24 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Mar 2015 13:40:47 +0000 (15:40 +0200)
From the indenting, it seems like the READ_NEXT_PAIR() was supposed to
be inside the while loop.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8188ee/phy.c

index 3f6c59cdeababd42c1ab5692ffe15c9d2b897956..a2bb02c7b837679455daf529fc84b5214068a33b 100644 (file)
@@ -452,9 +452,10 @@ static void handle_branch1(struct ieee80211_hw *hw, u16 arraylen,
                                READ_NEXT_PAIR(v1, v2, i);
                                while (v2 != 0xDEAD &&
                                       v2 != 0xCDEF &&
-                                      v2 != 0xCDCD && i < arraylen - 2)
+                                      v2 != 0xCDCD && i < arraylen - 2) {
                                        _rtl8188e_config_bb_reg(hw, v1, v2);
                                        READ_NEXT_PAIR(v1, v2, i);
+                               }
 
                                while (v2 != 0xDEAD && i < arraylen - 2)
                                        READ_NEXT_PAIR(v1, v2, i);