* [PATCH v5 1/2] staging: rtl8192u: fix RT_TRACE() in r8190_rtl8256.c
@ 2021-02-19 15:05 Du Cheng
2021-02-19 15:05 ` [PATCH v5 2/2] staging: rtl8192u: remove unnecessary return " Du Cheng
0 siblings, 1 reply; 2+ messages in thread
From: Du Cheng @ 2021-02-19 15:05 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: devel, Du Cheng
use MACRO __func__ instead of the literal names for RT_TRACE()
in phy_set_rf8256_bandwidth() and phy_rf8256_config_para_file(),
as reported by scripts/checkpatch.pl.
Signed-off-by: Du Cheng <ducheng2@gmail.com>
---
changes v5:
* fixed subject lines to be distinct and more specific
changes v4:
* merge two similar patches into 1
changes v3:
* break up changes into 3 patches
changes v2:
* improvedescription
changes v1:
* fix coding style
drivers/staging/rtl8192u/r8190_rtl8256.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl8192u/r8190_rtl8256.c
index fee3bfb99075..3e6bd6caf9da 100644
--- a/drivers/staging/rtl8192u/r8190_rtl8256.c
+++ b/drivers/staging/rtl8192u/r8190_rtl8256.c
@@ -73,11 +73,11 @@ void phy_set_rf8256_bandwidth(struct net_device *dev, enum ht_channel_width Band
else
rtl8192_phy_SetRFReg(dev, (enum rf90_radio_path_e)eRFPath, 0x14, bMask12Bits, 0x5ab);
} else {
- RT_TRACE(COMP_ERR, "phy_set_rf8256_bandwidth(): unknown hardware version\n");
+ RT_TRACE(COMP_ERR, "%s(): unknown hardware version\n", __func__);
}
break;
default:
- RT_TRACE(COMP_ERR, "phy_set_rf8256_bandwidth(): unknown Bandwidth: %#X\n", Bandwidth);
+ RT_TRACE(COMP_ERR, "%s(): unknown Bandwidth: %#X\n", __func__, Bandwidth);
break;
}
}
@@ -213,7 +213,7 @@ static void phy_rf8256_config_para_file(struct net_device *dev)
}
if (ret) {
- RT_TRACE(COMP_ERR, "phy_rf8256_config_para_file():Radio[%d] Fail!!", eRFPath);
+ RT_TRACE(COMP_ERR, "%s():Radio[%d] Fail!!", __func__, eRFPath);
goto phy_RF8256_Config_ParaFile_Fail;
}
}
--
2.27.0
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v5 2/2] staging: rtl8192u: remove unnecessary return in r8190_rtl8256.c
2021-02-19 15:05 [PATCH v5 1/2] staging: rtl8192u: fix RT_TRACE() in r8190_rtl8256.c Du Cheng
@ 2021-02-19 15:05 ` Du Cheng
0 siblings, 0 replies; 2+ messages in thread
From: Du Cheng @ 2021-02-19 15:05 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: devel, Du Cheng
remove the unnecessary return at the end of function
phy_set_rf8256_ofdm_tx_power(), reported by scripts/checkpatch.pl.
Signed-off-by: Du Cheng <ducheng2@gmail.com>
---
drivers/staging/rtl8192u/r8190_rtl8256.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.c b/drivers/staging/rtl8192u/r8190_rtl8256.c
index 3e6bd6caf9da..54747fda552f 100644
--- a/drivers/staging/rtl8192u/r8190_rtl8256.c
+++ b/drivers/staging/rtl8192u/r8190_rtl8256.c
@@ -291,5 +291,4 @@ void phy_set_rf8256_ofdm_tx_power(struct net_device *dev, u8 powerlevel)
}
rtl8192_setBBreg(dev, RegOffset[index], 0x7f7f7f7f, writeVal);
}
- return;
}
--
2.27.0
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-19 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-19 15:05 [PATCH v5 1/2] staging: rtl8192u: fix RT_TRACE() in r8190_rtl8256.c Du Cheng
2021-02-19 15:05 ` [PATCH v5 2/2] staging: rtl8192u: remove unnecessary return " Du Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).