diff mbox

[OPW,kernel,2/4] Staging: rtl8192u: fix checkpatch.pl error

Message ID 1381877992-3251-1-git-send-email-teobaluta@gmail.com
State New, archived
Headers show

Commit Message

Teodora Baluta Oct. 15, 2013, 10:59 p.m. UTC
This patch fixes the checkpatch.pl script error:
ERROR: do not use C99 // comments
+static long ieee80211_translate_todbm(u8 signal_strength_index)// 0-100
index.

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
---
 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Greg KH Oct. 16, 2013, 4:41 p.m. UTC | #1
On Wed, Oct 16, 2013 at 01:59:52AM +0300, Teodora Baluta wrote:
> This patch fixes the checkpatch.pl script error:
> ERROR: do not use C99 // comments
> +static long ieee80211_translate_todbm(u8 signal_strength_index)// 0-100
> index.
> 
> Signed-off-by: Teodora Baluta <teobaluta@gmail.com>

Applied, thanks.

greg k-h
diff mbox

Patch

diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
index 4414c7d..e730ed6 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
@@ -2166,7 +2166,8 @@  static inline u8 ieee80211_SignalStrengthTranslate(
 	return RetSS;
 }
 
-static long ieee80211_translate_todbm(u8 signal_strength_index)// 0-100 index.
+/* 0-100 index */
+static long ieee80211_translate_todbm(u8 signal_strength_index)
 {
 	long	signal_power; // in dBm.