From 06f1465b71dfd5eb2843a01c7b513a55c0c9d941 Mon Sep 17 00:00:00 2001 From: Greg Donald Date: Sun, 24 Aug 2014 18:34:43 -0500 Subject: [PATCH] drivers: staging: rtl8821ae: Fix spaces required around that '<' errors Fix checkpatch.pl spaces required around that '<' errors Signed-off-by: Greg Donald Signed-off-by: Greg Kroah-Hartman --- .../rtl8821ae/btcoexist/halbtc8723b2ant.c | 2 +- drivers/staging/rtl8821ae/rtl8821ae/phy.c | 18 +++++++++--------- drivers/staging/rtl8821ae/rtl8821ae/rf.c | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c b/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c index da3f62da4e40..edcf8ddfa455 100644 --- a/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c +++ b/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c @@ -1323,7 +1323,7 @@ static void halbtc8723b2ant_set_ant_path(struct btc_coexist *btcoexist, btcoexist->btc_get(btcoexist, BTC_GET_BL_EXT_SWITCH, &pg_ext_switch); btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); - if ((fw_ver<0xc0000) || pg_ext_switch) + if ((fw_ver < 0xc0000) || pg_ext_switch) use_ext_switch = true; if (init_hwcfg) { diff --git a/drivers/staging/rtl8821ae/rtl8821ae/phy.c b/drivers/staging/rtl8821ae/rtl8821ae/phy.c index 1dd33016b4b9..c56936d7381b 100644 --- a/drivers/staging/rtl8821ae/rtl8821ae/phy.c +++ b/drivers/staging/rtl8821ae/rtl8821ae/phy.c @@ -1252,7 +1252,7 @@ static bool _rtl8812ae_phy_config_mac_with_headerfile(struct ieee80211_hw *hw) for (i = 0; i < arraylength; i += 2) { v1 = ptrarray[i]; v2 = (u8) ptrarray[i + 1]; - if (v1<0xCDCDCDCD) { + if (v1 < 0xCDCDCDCD) { rtl_write_byte(rtlpriv, v1, (u8) v2); } else { if (!_rtl8821ae_check_condition(hw,v1)) { @@ -1296,7 +1296,7 @@ static bool _rtl8821ae_phy_config_mac_with_headerfile(struct ieee80211_hw *hw) for (i = 0; i < arraylength; i += 2) { v1 = ptrarray[i]; v2 = (u8) ptrarray[i + 1]; - if (v1<0xCDCDCDCD) { + if (v1 < 0xCDCDCDCD) { rtl_write_byte(rtlpriv, v1, (u8) v2); continue; } else { @@ -1342,7 +1342,7 @@ static bool _rtl8812ae_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, for (i = 0; i < arraylen; i += 2) { v1 = array_table[i]; v2 = array_table[i+1]; - if (v1<0xCDCDCDCD) { + if (v1 < 0xCDCDCDCD) { _rtl8812ae_config_bb_reg(hw, v1, v2); continue; } else {/*This line is the start line of branch.*/ @@ -1431,7 +1431,7 @@ static bool _rtl8821ae_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, for (i = 0; i < arraylen; i += 2) { v1 = array_table[i]; v2 = array_table[i+1]; - if (v1<0xCDCDCDCD) { + if (v1 < 0xCDCDCDCD) { _rtl8821ae_config_bb_reg(hw, v1, v2); continue; } else {/*This line is the start line of branch.*/ @@ -1566,7 +1566,7 @@ static bool _rtl8812ae_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, v5 = phy_regarray_table_pg[i+4]; v6 = phy_regarray_table_pg[i+5]; - if (v1<0xCDCDCDCD) { + if (v1 < 0xCDCDCDCD) { if ( (v4 == 0xfe) || (v4 == 0xffe)) mdelay(50); else @@ -1617,7 +1617,7 @@ static bool _rtl8821ae_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, v5 = phy_regarray_table_pg[i+4]; v6 = phy_regarray_table_pg[i+5]; - if (v1<0xCDCDCDCD) { + if (v1 < 0xCDCDCDCD) { if (v4 == 0xfe) mdelay(50); else if (v4 == 0xfd) @@ -1682,7 +1682,7 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw * hw, for (i = 0; i < radioa_arraylen_a; i = i + 2) { v1 = radioa_array_table_a[i]; v2 = radioa_array_table_a[i+1]; - if (v1<0xcdcdcdcd) { + if (v1 < 0xcdcdcdcd) { _rtl8821ae_config_rf_radio_a(hw,v1,v2); continue; }else{/*This line is the start line of branch.*/ @@ -1714,7 +1714,7 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct ieee80211_hw * hw, for (i = 0; i < radioa_arraylen_b; i = i + 2) { v1 = radioa_array_table_b[i]; v2 = radioa_array_table_b[i+1]; - if (v1<0xcdcdcdcd) { + if (v1 < 0xcdcdcdcd) { _rtl8821ae_config_rf_radio_b(hw,v1,v2); continue; }else{/*This line is the start line of branch.*/ @@ -1779,7 +1779,7 @@ bool rtl8821ae_phy_config_rf_with_headerfile(struct ieee80211_hw * hw, for (i = 0; i < radioa_arraylen; i = i + 2) { v1 = radioa_array_table[i]; v2 = radioa_array_table[i+1]; - if (v1<0xcdcdcdcd) { + if (v1 < 0xcdcdcdcd) { _rtl8821ae_config_rf_radio_a(hw,v1,v2); }else{/*This line is the start line of branch.*/ if(!_rtl8821ae_check_condition(hw,v1)){ diff --git a/drivers/staging/rtl8821ae/rtl8821ae/rf.c b/drivers/staging/rtl8821ae/rtl8821ae/rf.c index 87c1c9746c43..86629619bff0 100644 --- a/drivers/staging/rtl8821ae/rtl8821ae/rf.c +++ b/drivers/staging/rtl8821ae/rtl8821ae/rf.c @@ -211,7 +211,7 @@ static void _rtl8821ae_get_txpower_writeval_by_regulatory(struct ieee80211_hw *h if (rtlphy->pwrgroup_cnt == 1) chnlgroup = 0; else { - if(channel<3) + if (channel < 3) chnlgroup = 0; else if (channel <6) chnlgroup = 1; -- 2.30.2