linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces
@ 2015-02-16  9:42 Pushpendra Singh
  2015-02-16  9:42 ` [PATCH 2/2] staging: rtl8192e: added parentheses in macros Pushpendra Singh
  2015-03-07  0:55 ` [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Pushpendra Singh @ 2015-02-16  9:42 UTC (permalink / raw)
  To: gregkh, devel, linux-kernel; +Cc: Pushpendra Singh

Removed checkpatch.pl error
ERROR: space prohibited before that ',' (ctx:WxE)
+        433, 433, 477} } ,

Signed-off-by: Pushpendra Singh <pushpendra.singh@smartplayin.com>
---
 drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++--
 drivers/staging/rtl8192e/rtllib_rx.c      | 4 ++--
 drivers/staging/rtl8192e/rtllib_softmac.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c
index c7f4508..1ea426b 100644
--- a/drivers/staging/rtl8192e/rtl819x_HTProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c
@@ -34,13 +34,13 @@ u16 MCS_DATA_RATE[2][2][77] = {
 	 468, 520, 0, 78, 104, 130, 117, 156, 195, 104, 130, 130, 156, 182,
 	 182, 208, 156, 195, 195, 234, 273, 273, 312, 130, 156, 181, 156,
 	 181, 208, 234, 208, 234, 260, 260, 286, 195, 234, 273, 234, 273,
-	 312, 351, 312, 351, 390, 390, 429} ,
+	 312, 351, 312, 351, 390, 390, 429},
 	{14, 29, 43, 58, 87, 116, 130, 144, 29, 58, 87, 116, 173, 231, 260, 289,
 	 43, 87, 130, 173, 260, 347, 390, 433, 58, 116, 173, 231, 347, 462, 520,
 	 578, 0, 87, 116, 144, 130, 173, 217, 116, 144, 144, 173, 202, 202, 231,
 	 173, 217, 217, 260, 303, 303, 347, 144, 173, 202, 173, 202, 231, 260,
 	 231, 260, 289, 289, 318, 217, 260, 303, 260, 303, 347, 390, 347, 390,
-	 433, 433, 477} } ,
+	 433, 433, 477} },
 	{{27, 54, 81, 108, 162, 216, 243, 270, 54, 108, 162, 216, 324, 432, 486,
 	 540, 81, 162, 243, 324, 486, 648, 729, 810, 108, 216, 324, 432, 648,
 	 864, 972, 1080, 12, 162, 216, 270, 243, 324, 405, 216, 270, 270, 324,
diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index cf11b04..280baf2 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -472,7 +472,7 @@ static bool AddReorderEntry(struct rx_ts_record *pTS,
 void rtllib_indicate_packets(struct rtllib_device *ieee, struct rtllib_rxb **prxbIndicateArray, u8 index)
 {
 	struct net_device_stats *stats = &ieee->stats;
-	u8 i = 0 , j = 0;
+	u8 i = 0, j = 0;
 	u16 ethertype;
 
 	for (j = 0; j < index; j++) {
@@ -1211,7 +1211,7 @@ static void rtllib_rx_indicate_pkt_legacy(struct rtllib_device *ieee,
 
 	if (rxb == NULL) {
 		printk(KERN_INFO "%s: rxb is NULL!!\n", __func__);
-		return ;
+		return;
 	}
 
 	for (i = 0; i < rxb->nr_subframes; i++) {
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index d992a75..6a44a6a 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -1474,7 +1474,7 @@ static void rtllib_associate_step1(struct rtllib_device *ieee, u8 *daddr)
 	if (!skb)
 		rtllib_associate_abort(ieee);
 	else {
-		ieee->state = RTLLIB_ASSOCIATING_AUTHENTICATING ;
+		ieee->state = RTLLIB_ASSOCIATING_AUTHENTICATING;
 		RTLLIB_DEBUG_MGMT("Sending authentication request\n");
 		softmac_mgmt_xmit(skb, ieee);
 		if (!timer_pending(&ieee->associate_timer)) {
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] staging: rtl8192e: added parentheses in macros
  2015-02-16  9:42 [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Pushpendra Singh
@ 2015-02-16  9:42 ` Pushpendra Singh
  2015-02-16  9:54   ` Dan Carpenter
  2015-03-07  0:55 ` [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Greg KH
  1 sibling, 1 reply; 4+ messages in thread
From: Pushpendra Singh @ 2015-02-16  9:42 UTC (permalink / raw)
  To: gregkh, devel, linux-kernel; +Cc: Pushpendra Singh

Removed checkpatch.pl error
ERROR: Macros with complex values should be enclosed in parentheses
+#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x

Signed-off-by: Pushpendra Singh <pushpendra.singh@smartplayin.com>
---
 drivers/staging/rtl8192e/rtllib_rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index 280baf2..2917ce8 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -1685,7 +1685,7 @@ static int rtllib_parse_qos_info_param_IE(struct rtllib_info_element
 	return rc;
 }
 
-#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x
+#define MFIE_STRING(x) (case MFIE_TYPE_ ##x: return #x)
 
 static const char *get_info_element_string(u16 id)
 {
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] staging: rtl8192e: added parentheses in macros
  2015-02-16  9:42 ` [PATCH 2/2] staging: rtl8192e: added parentheses in macros Pushpendra Singh
@ 2015-02-16  9:54   ` Dan Carpenter
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2015-02-16  9:54 UTC (permalink / raw)
  To: Pushpendra Singh; +Cc: gregkh, devel, linux-kernel

On Mon, Feb 16, 2015 at 03:12:25PM +0530, Pushpendra Singh wrote:
> Removed checkpatch.pl error
> ERROR: Macros with complex values should be enclosed in parentheses
> +#define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x
> 

You didn't try to compile this code.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces
  2015-02-16  9:42 [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Pushpendra Singh
  2015-02-16  9:42 ` [PATCH 2/2] staging: rtl8192e: added parentheses in macros Pushpendra Singh
@ 2015-03-07  0:55 ` Greg KH
  1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-03-07  0:55 UTC (permalink / raw)
  To: Pushpendra Singh; +Cc: devel, linux-kernel

On Mon, Feb 16, 2015 at 03:12:24PM +0530, Pushpendra Singh wrote:
> Removed checkpatch.pl error
> ERROR: space prohibited before that ',' (ctx:WxE)
> +        433, 433, 477} } ,
> 
> Signed-off-by: Pushpendra Singh <pushpendra.singh@smartplayin.com>
> ---
>  drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++--
>  drivers/staging/rtl8192e/rtllib_rx.c      | 4 ++--
>  drivers/staging/rtl8192e/rtllib_softmac.c | 2 +-
>  3 files changed, 5 insertions(+), 5 deletions(-)

Does not apply to my tree :(

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-07 11:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-16  9:42 [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Pushpendra Singh
2015-02-16  9:42 ` [PATCH 2/2] staging: rtl8192e: added parentheses in macros Pushpendra Singh
2015-02-16  9:54   ` Dan Carpenter
2015-03-07  0:55 ` [PATCH 1/2] staging: rtl8192e: remove unnecessary spaces Greg KH

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).