public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in rtw_security.c
  2026-03-15 21:57 ` Ethan Tidmore
@ 2026-03-16  1:46   ` Joshua Gu
  2026-03-18 15:43     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Gu @ 2026-03-16  1:46 UTC (permalink / raw)
  To: Ethan Tidmore; +Cc: linux-staging, linux-kernel, gregkh

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: 0001-staging-rtl8723bs-remove-unnecessary-spaces-in-rtw_s.patch --]
[-- Type: text/x-diff, Size: 1740 bytes --]

From 319ab64bc60820beedaabcd951cc9eb8f8c9bad4 Mon Sep 17 00:00:00 2001
From: Joshua Gu <joshuagu789@gmail.com>
Date: Sun, 15 Mar 2026 20:10:48 +0000
Subject: [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in
 rtw_security.c

Fix checkpatch.pl warnings about spaces after casts,
along with other double spaces.

Signed-off-by: Joshua Gu <joshuagu789@gmail.com>
---
Changes in v2:
  - Removed double spaces after assignment operator in rtw_security.c

 drivers/staging/rtl8723bs/core/rtw_security.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
index 54e89f192b18..b98bc1aa9cbe 100644
--- a/drivers/staging/rtl8723bs/core/rtw_security.c
+++ b/drivers/staging/rtl8723bs/core/rtw_security.c
@@ -658,8 +658,8 @@ static void construct_mic_iv(u8 *mic_iv,
 		for (i = 8; i < 14; i++)
 			mic_iv[i] = pn_vector[13 - i];          /* mic_iv[8:13] = PN[5:0] */
 		#endif
-		mic_iv[14] = (unsigned char) (payload_length / 256);
-		mic_iv[15] = (unsigned char) (payload_length % 256);
+		mic_iv[14] = (unsigned char)(payload_length / 256);
+		mic_iv[15] = (unsigned char)(payload_length % 256);
 }
 
 /************************************************/
@@ -781,8 +781,8 @@ static void construct_ctr_preload(u8 *ctr_preload,
 	for (i = 8; i < 14; i++)
 		ctr_preload[i] =    pn_vector[13 - i];          /* ctr_preload[8:13] = PN[5:0] */
 #endif
-	ctr_preload[14] =  (unsigned char) (c / 256); /* Ctr */
-	ctr_preload[15] =  (unsigned char) (c % 256);
+	ctr_preload[14] = (unsigned char)(c / 256); /* Ctr */
+	ctr_preload[15] = (unsigned char)(c % 256);
 }
 
 static signed int aes_cipher(u8 *key, uint	hdrlen,
-- 
2.43.0


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

* [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in rtw_security.c
@ 2026-03-16  2:04 Joshua Gu
  2026-03-16  3:33 ` Ethan Tidmore
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Gu @ 2026-03-16  2:04 UTC (permalink / raw)
  To: ethantidmore06; +Cc: linux-staging, linux-kernel, gregkh

Fix checkpatch.pl warnings about spaces after casts,
along with other double spaces.

Signed-off-by: Joshua Gu <joshuagu789@gmail.com>
---
Changes in v2:
  - Removed double spaces after assignment operator in rtw_security.c

 drivers/staging/rtl8723bs/core/rtw_security.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
index 54e89f192b18..b98bc1aa9cbe 100644
--- a/drivers/staging/rtl8723bs/core/rtw_security.c
+++ b/drivers/staging/rtl8723bs/core/rtw_security.c
@@ -658,8 +658,8 @@ static void construct_mic_iv(u8 *mic_iv,
 		for (i = 8; i < 14; i++)
 			mic_iv[i] = pn_vector[13 - i];          /* mic_iv[8:13] = PN[5:0] */
 		#endif
-		mic_iv[14] = (unsigned char) (payload_length / 256);
-		mic_iv[15] = (unsigned char) (payload_length % 256);
+		mic_iv[14] = (unsigned char)(payload_length / 256);
+		mic_iv[15] = (unsigned char)(payload_length % 256);
 }
 
 /************************************************/
@@ -781,8 +781,8 @@ static void construct_ctr_preload(u8 *ctr_preload,
 	for (i = 8; i < 14; i++)
 		ctr_preload[i] =    pn_vector[13 - i];          /* ctr_preload[8:13] = PN[5:0] */
 #endif
-	ctr_preload[14] =  (unsigned char) (c / 256); /* Ctr */
-	ctr_preload[15] =  (unsigned char) (c % 256);
+	ctr_preload[14] = (unsigned char)(c / 256); /* Ctr */
+	ctr_preload[15] = (unsigned char)(c % 256);
 }
 
 static signed int aes_cipher(u8 *key, uint	hdrlen,
-- 
2.43.0


Sorry, I think my previous reply had the patch as an attachment instead of inline. v2 removes additional double spaces.


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

* Re: [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in rtw_security.c
  2026-03-16  2:04 [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in rtw_security.c Joshua Gu
@ 2026-03-16  3:33 ` Ethan Tidmore
  0 siblings, 0 replies; 4+ messages in thread
From: Ethan Tidmore @ 2026-03-16  3:33 UTC (permalink / raw)
  To: DH3OX3CFT586.2HUDPSK7M65AS, ethantidmore06
  Cc: linux-staging, linux-kernel, gregkh

On Sun Mar 15, 2026 at 9:04 PM CDT, Joshua Gu wrote:
> Fix checkpatch.pl warnings about spaces after casts,
> along with other double spaces.
>
> Signed-off-by: Joshua Gu <joshuagu789@gmail.com>
> ---

LGTM.

Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>

Thanks,

ET

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

* Re: [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in rtw_security.c
  2026-03-16  1:46   ` [PATCH v2] " Joshua Gu
@ 2026-03-18 15:43     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2026-03-18 15:43 UTC (permalink / raw)
  To: Joshua Gu; +Cc: Ethan Tidmore, linux-staging, linux-kernel

On Mon, Mar 16, 2026 at 01:46:19AM +0000, Joshua Gu wrote:

> >From 319ab64bc60820beedaabcd951cc9eb8f8c9bad4 Mon Sep 17 00:00:00 2001
> From: Joshua Gu <joshuagu789@gmail.com>
> Date: Sun, 15 Mar 2026 20:10:48 +0000
> Subject: [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in
>  rtw_security.c
> 
> Fix checkpatch.pl warnings about spaces after casts,
> along with other double spaces.
> 
> Signed-off-by: Joshua Gu <joshuagu789@gmail.com>
> ---
> Changes in v2:
>   - Removed double spaces after assignment operator in rtw_security.c

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- Your patch was attached, please place it inline so that it can be
  applied directly from the email message itself.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

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

end of thread, other threads:[~2026-03-18 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16  2:04 [PATCH v2] staging: rtl8723bs: remove unnecessary spaces in rtw_security.c Joshua Gu
2026-03-16  3:33 ` Ethan Tidmore
  -- strict thread matches above, loose matches on Subject: below --
2026-03-15 20:23 [PATCH] " Joshua Gu
2026-03-15 21:57 ` Ethan Tidmore
2026-03-16  1:46   ` [PATCH v2] " Joshua Gu
2026-03-18 15:43     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox