Staging: rtlwifi: rtl8822be: Use __func__ instead of func name
RFC 1/1 Staging: rtlwifi: rtl8822be: Use __func__ instead of func name
Fix checkpatch warning:
WARNING: Prefer using '"%s...", __func__' to using 'rtl8822be_set_fw_rsvdpagepkt', this function's name, in a string
Use __func__ instead of using complete function name. Avoid line over 80 characters
Signed-off-by Bhanusree Pola <[email protected]>
--- drivers/staging/rtlwifi/rtl8822be/fw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtlwifi/rtl8822be/fw.c +2 -2
@@ -736,10 +736,10 @@ void rtl8822be_set_fw_rsvdpagepkt(struct ieee80211_hw *hw, bool b_dl_finished) totalpacketlen =TOTAL_RESERVED_PKT_LEN ;RT_PRINT_DATA (rtlpriv,COMP_CMD ,DBG_LOUD , -"rtl8822be_set_fw_rsvdpagepkt(): HW_VAR_SET_TX_CMD: ALL\n" , + ("%s: HW_VAR_SET_TX_CMD: ALL\n" , __func__), &reserved_page_packet[0 ], totalpacketlen);RT_PRINT_DATA (rtlpriv,COMP_CMD ,DBG_LOUD , -"rtl8822be_set_fw_rsvdpagepkt(): HW_VAR_SET_TX_CMD: ALL\n" , + ("%s: HW_VAR_SET_TX_CMD: ALL\n" , __func__), u1_rsvd_page_loc,3 ); skb =dev_alloc_skb (totalpacketlen);
Signature · 1 line
2.17.1
Greg Kroah-Hartman
maintainerQuoted 10 lines · Bhanusree Pola
Fix checkpatch warning:
WARNING: Prefer using '"%s...",__func__' to using 'rtl8822be_set_fw_rsvdpagepkt', this function's name, in a stringUse
__func__instead of using complete function name. Avoid line over 80 charactersSigned-off-by Bhanusree Pola <[email protected]>--- drivers/staging/rtlwifi/rtl8822be/fw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Why is this a "RFC"?
Personally, I ignore those types of patches as the author obviously doesn't think they are good enough to be applied :)
thanks,
greg k-h