mirror of https://gitee.com/openkylin/linux.git
staging: rtlwifi: rtl8822be: Use __func__ instead of hardcoded name
Switch hardcoded function name with a reference to __func__ making the code more maintenable and addressing the checkpatch warning: WARNING: Prefer using '"%s...", __func__' to using 'rtl8822be_sc_mapping', this function's name, in a string + "rtl8822be_sc_mapping: Not Correct Primary40MHz Setting\n"); Credits to checkpatch. Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
85d007756f
commit
778fbddd31
|
@ -571,9 +571,9 @@ static u8 rtl8822be_sc_mapping(struct ieee80211_hw *hw,
|
|||
sc_setting_of_desc =
|
||||
VHT_DATA_SC_20_UPPERST_OF_80MHZ;
|
||||
else
|
||||
RT_TRACE(
|
||||
rtlpriv, COMP_SEND, DBG_LOUD,
|
||||
"rtl8822be_sc_mapping: Not Correct Primary40MHz Setting\n");
|
||||
RT_TRACE(rtlpriv, COMP_SEND, DBG_LOUD,
|
||||
"%s: Not Correct Primary40MHz Setting\n",
|
||||
__func__);
|
||||
}
|
||||
} else if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20_40) {
|
||||
if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) {
|
||||
|
|
Loading…
Reference in New Issue