Skip to content

Commit 2acd846

Browse files
arndbKalle Valo
authored andcommitted
rtlwifi: fix gcc-6 indentation warning
The rtl8821ae_dm_txpower_tracking_callback_thermalmeter function contains a call to RT_TRACE() that is indented in a misleading way, as pointed out by a gcc-6 warning: drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c: In function 'rtl8821ae_dm_txpower_tracking_callback_thermalmeter': drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:2491:4: error: statement is indented as if it were guarded by... RT_TRACE(rtlpriv, COMP_POWER_TRACKING, DBG_LOUD, ^~~~~~~~ drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c:2488:3: note: ...this 'for' clause, but it is not for (p = RF90_PATH_A; p < MAX_PATH_NUM_8821A; p++) ^~~ It is clear from the context that the call was not meant to be part of the loop and only the indentation is wrong, so this removes the extra tabs. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent c58d900 commit 2acd846

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/wireless/realtek/rtlwifi/rtl8821ae

1 file changed

+3
-3
lines changed

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,9 +2488,9 @@ void rtl8821ae_dm_txpower_tracking_callback_thermalmeter(
24882488
for (p = RF90_PATH_A; p < MAX_PATH_NUM_8821A; p++)
24892489
rtldm->swing_idx_ofdm_base[p] = rtldm->swing_idx_ofdm[p];
24902490

2491-
RT_TRACE(rtlpriv, COMP_POWER_TRACKING, DBG_LOUD,
2492-
"pDM_Odm->RFCalibrateInfo.ThermalValue = %d ThermalValue= %d\n",
2493-
rtldm->thermalvalue, thermal_value);
2491+
RT_TRACE(rtlpriv, COMP_POWER_TRACKING, DBG_LOUD,
2492+
"pDM_Odm->RFCalibrateInfo.ThermalValue = %d ThermalValue= %d\n",
2493+
rtldm->thermalvalue, thermal_value);
24942494
/*Record last Power Tracking Thermal Value*/
24952495
rtldm->thermalvalue = thermal_value;
24962496
}

0 commit comments

Comments
 (0)