Skip to contentSkip to conversation

Staging: rtl8192u: Convert comments from C99 to C89 style

PATCH In review Ksenija Stanojevic 2 participants 2 messages Feb 23, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: rtl8192u: Convert comments from C99 to C89 style

Kernel style for comments is C89 style. Issue found by checkpatch.pl.

---
v2: remove space before tab

 drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +7 -7
index 7ed7243..44a9e3d 100644
@@ -1,14 +1,14 @@
 #ifndef _TSTYPE_H_
 #define _TSTYPE_H_
 #include "rtl819x_Qos.h"
-#define TS_SETUP_TIMEOUT	60  // In millisecond
+#define TS_SETUP_TIMEOUT	60  /*  In millisecond */
 #define TS_INACT_TIMEOUT	60
 #define TS_ADDBA_DELAY		60
 
 #define TOTAL_TS_NUM		16
 #define TCLAS_NUM		4
 
-// This define the Tx/Rx directions
+/*  This define the Tx/Rx directions */
 typedef enum _TR_SELECT {
 	TX_DIR = 0,
 	RX_DIR = 1,
@@ -28,9 +28,9 @@ typedef struct _TS_COMMON_INFO{
 typedef struct _TX_TS_RECORD{
 	TS_COMMON_INFO		TsCommonInfo;
 	u16				TxCurSeq;
-	BA_RECORD			TxPendingBARecord;	// For BA Originator
-	BA_RECORD			TxAdmittedBARecord;	// For BA Originator
-//	QOS_DL_RECORD		DLRecord;
+	BA_RECORD			TxPendingBARecord;	/*  For BA Originator */
+	BA_RECORD			TxAdmittedBARecord;	/*  For BA Originator */
+/*	QOS_DL_RECORD		DLRecord; */
 	u8				bAddBaReqInProgress;
 	u8				bAddBaReqDelayed;
 	u8				bUsingBa;
@@ -44,11 +44,11 @@ typedef struct _RX_TS_RECORD {
 	u16				RxTimeoutIndicateSeq;
 	struct list_head		RxPendingPktList;
 	struct timer_list		RxPktPendingTimer;
-	BA_RECORD			RxAdmittedBARecord;	 // For BA Recipient
+	BA_RECORD			RxAdmittedBARecord;	 /*  For BA Recipient */
 	u16				RxLastSeqNum;
 	u8				RxLastFragNum;
 	u8				num;
-//	QOS_DL_RECORD		DLRecord;
+/*	QOS_DL_RECORD		DLRecord; */
 } RX_TS_RECORD, *PRX_TS_RECORD;
 
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 14 lines · Ksenija Stanojevic

Kernel style for comments is C89 style. Issue found by checkpatch.pl.

---
v2: remove space before tab

 drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +0 -0
index 7ed7243..44a9e3d 100644

drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h line 4

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +1 -1
@@ -1,14 +1,14 @@
 #ifndef _TSTYPE_H_
 #define _TSTYPE_H_
 #include "rtl819x_Qos.h"
-#define TS_SETUP_TIMEOUT	60  // In millisecond
+#define TS_SETUP_TIMEOUT	60  /*  In millisecond */

Please only one space after the /*

drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h line 11

Quoted 8 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +1 -1
 #define TS_INACT_TIMEOUT	60
 #define TS_ADDBA_DELAY		60
 
 #define TOTAL_TS_NUM		16
 #define TCLAS_NUM		4
 
-// This define the Tx/Rx directions
+/*  This define the Tx/Rx directions */

Same here

drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h typedef struct _TS_COMMON_INFO{ · line 33

Quoted 13 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +3 -3
 typedef enum _TR_SELECT {
 	TX_DIR = 0,
 	RX_DIR = 1,
@@ -28,9 +28,9 @@ typedef struct _TS_COMMON_INFO{
 typedef struct _TX_TS_RECORD{
 	TS_COMMON_INFO		TsCommonInfo;
 	u16				TxCurSeq;
-	BA_RECORD			TxPendingBARecord;	// For BA Originator
-	BA_RECORD			TxAdmittedBARecord;	// For BA Originator
-//	QOS_DL_RECORD		DLRecord;
+	BA_RECORD			TxPendingBARecord;	/*  For BA Originator */
+	BA_RECORD			TxAdmittedBARecord;	/*  For BA Originator */
+/*	QOS_DL_RECORD		DLRecord; */

The last line is not a comment, but disabling a variable. In this case you should remove the variable from the struct instead of changing the comment style as it's dead code.

drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h typedef struct _RX_TS_RECORD { · line 47

Quoted 9 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +1 -1
 	u8				bAddBaReqInProgress;
 	u8				bAddBaReqDelayed;
 	u8				bUsingBa;
@@ -44,11 +44,11 @@ typedef struct _RX_TS_RECORD {
 	u16				RxTimeoutIndicateSeq;
 	struct list_head		RxPendingPktList;
 	struct timer_list		RxPktPendingTimer;
-	BA_RECORD			RxAdmittedBARecord;	 // For BA Recipient
+	BA_RECORD			RxAdmittedBARecord;	 /*  For BA Recipient */

Again the issue with two spaces

drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h typedef struct _RX_TS_RECORD { · line 51

Quoted 5 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +1 -1
 	u16				RxLastSeqNum;
 	u8				RxLastFragNum;
 	u8				num;
-//	QOS_DL_RECORD		DLRecord;
+/*	QOS_DL_RECORD		DLRecord; */

And another case of dead code.

drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h typedef struct _RX_TS_RECORD { · line 54

Quoted 4 lines
drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h +0 -0
 } RX_TS_RECORD, *PRX_TS_RECORD;
 
 

Cheers,
Jes