mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: align AES function parameters with open parenthesis
@ 2026-09-05  7:20 JunHyeok Seo
  2026-09-09 14:57 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: JunHyeok Seo @ 2026-09-05  7:20 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-staging
  Cc: linux-kernel, Dan Carpenter, JunHyeok Seo

Align the continuation lines of the aes_cipher()
parameter lists with their opening parenthesis,
and replace the stray tab between the uint type
and the hdrlen argument with a single space.

This addresses the "Alignment should match open parenthesis" check
reported by checkpatch.pl --strict.

No functional change.

Signed-off-by: JunHyeok Seo <starlights2283@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_security.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
index 2217cffac5f2..3de102a27517 100644
--- a/drivers/staging/rtl8723bs/core/rtw_security.c
+++ b/drivers/staging/rtl8723bs/core/rtw_security.c
@@ -765,8 +765,8 @@ static void construct_ctr_preload(u8 *ctr_preload,
 	ctr_preload[15] = (unsigned char)(c % 256);
 }
 
-static signed int aes_cipher(u8 *key, uint	hdrlen,
-			u8 *pframe, uint plen)
+static signed int aes_cipher(u8 *key, uint hdrlen,
+			     u8 *pframe, uint plen)
 {
 	uint	qc_exists, a4_exists, i, j, payload_remainder,
 		num_blocks, payload_index;
-- 
2.43.0


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

* Re: [PATCH] staging: rtl8723bs: align AES function parameters with open parenthesis
  2026-09-05  7:20 [PATCH] staging: rtl8723bs: align AES function parameters with open parenthesis JunHyeok Seo
@ 2026-09-09 14:57 ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2026-09-09 14:57 UTC (permalink / raw)
  To: JunHyeok Seo; +Cc: Greg Kroah-Hartman, linux-staging, linux-kernel

On Sat, Sep 05, 2026 at 04:20:33PM +0900, JunHyeok Seo wrote:
> Align the continuation lines of the aes_cipher()
> parameter lists with their opening parenthesis,
> and replace the stray tab between the uint type
> and the hdrlen argument with a single space.

This paragraph should be wrapped at 72 characters.

> 
> This addresses the "Alignment should match open parenthesis" check
> reported by checkpatch.pl --strict.
> 
> No functional change.
> 
> Signed-off-by: JunHyeok Seo <starlights2283@gmail.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_security.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
> index 2217cffac5f2..3de102a27517 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_security.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_security.c
> @@ -765,8 +765,8 @@ static void construct_ctr_preload(u8 *ctr_preload,
>  	ctr_preload[15] = (unsigned char)(c % 256);
>  }
>  
> -static signed int aes_cipher(u8 *key, uint	hdrlen,
> -			u8 *pframe, uint plen)
> +static signed int aes_cipher(u8 *key, uint hdrlen,
> +			     u8 *pframe, uint plen)

Unless it's specified by the protocol spec, then "signed int" is
nonsense.  Plus the caller doesn't check so it might as well be
void.

regards,
dan carpenter


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

end of thread, other threads:[~2026-09-09 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-05  7:20 [PATCH] staging: rtl8723bs: align AES function parameters with open parenthesis JunHyeok Seo
2026-09-09 14:57 ` Dan Carpenter

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

all inboxes | Powered by JetHome®