The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/3] staging: rtl8723bs: clean up coding style in sdio_intf.c
@ 2026-05-31 16:58 Vitaliy Slivinskiy
  2026-05-31 16:58 ` [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments Vitaliy Slivinskiy
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vitaliy Slivinskiy @ 2026-05-31 16:58 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, dan.carpenter, Vitaliy Slivinskiy

This patch series fixes several coding style issues in sdio_intf.c
reported by checkpatch.pl, including unnecessary braces, spacing
around conditional operators, and formatting of function declarations.

Changes in v3:
- Split the changes into three separate patches as requested.
- Fixed the sentinel entry in the sdio_ids array.

Vitaliy Slivinskiy (3):
  staging: rtl8723bs: remove unnecessary braces and comments
  staging: rtl8723bs: fix spacing around conditional operators
  staging: rtl8723bs: clean up blank lines and function formatting

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

-- 
2.53.0


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

* [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments
  2026-05-31 16:58 [PATCH v3 0/3] staging: rtl8723bs: clean up coding style in sdio_intf.c Vitaliy Slivinskiy
@ 2026-05-31 16:58 ` Vitaliy Slivinskiy
  2026-07-07 10:59   ` Greg KH
  2026-05-31 16:58 ` [PATCH v3 2/3] staging: rtl8723bs: fix spacing around conditional operators Vitaliy Slivinskiy
  2026-05-31 16:58 ` [PATCH v3 3/3] staging: rtl8723bs: clean up blank lines and function formatting Vitaliy Slivinskiy
  2 siblings, 1 reply; 5+ messages in thread
From: Vitaliy Slivinskiy @ 2026-05-31 16:58 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, dan.carpenter, Vitaliy Slivinskiy

Fix checkpatch.pl warning about unnecessary braces for single statement blocks. Also clean up the sentinel entry in the sdio_ids array as suggested by reviewers.

Signed-off-by: Vitaliy Slivinskiy <phant0m.mail2023@gmail.com>
---
Changes in v3:
- Split changes into multiple patches.
- Fixed sentinel entry formatting.

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index c43a0391a5ca..f0aa5bc8a38b 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -20,7 +20,7 @@ static const struct sdio_device_id sdio_ids[] = {
 	{ SDIO_DEVICE(0x024c, 0x0626), },
 	{ SDIO_DEVICE(0x024c, 0x0627), },
 	{ SDIO_DEVICE(0x024c, 0xb723), },
-	{ /* end: all zeroes */				},
+	{ }
 };
 MODULE_DEVICE_TABLE(sdio, sdio_ids);
 
-- 
2.53.0


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

* [PATCH v3 2/3] staging: rtl8723bs: fix spacing around conditional operators
  2026-05-31 16:58 [PATCH v3 0/3] staging: rtl8723bs: clean up coding style in sdio_intf.c Vitaliy Slivinskiy
  2026-05-31 16:58 ` [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments Vitaliy Slivinskiy
@ 2026-05-31 16:58 ` Vitaliy Slivinskiy
  2026-05-31 16:58 ` [PATCH v3 3/3] staging: rtl8723bs: clean up blank lines and function formatting Vitaliy Slivinskiy
  2 siblings, 0 replies; 5+ messages in thread
From: Vitaliy Slivinskiy @ 2026-05-31 16:58 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, dan.carpenter, Vitaliy Slivinskiy

Fix checkpatch.pl warning regarding missing spaces around the ternary operator.

Signed-off-by: Vitaliy Slivinskiy <phant0m.mail2023@gmail.com>
---
Changes in v3:
- Split changes into multiple patches.
- Fixed sentinel entry formatting.

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index f0aa5bc8a38b..9d936b8349f0 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -78,7 +78,7 @@ static int sdio_alloc_irq(struct dvobj_priv *dvobj)
 
 	sdio_release_host(func);
 
-	return err?_FAIL:_SUCCESS;
+	return err ? _FAIL : _SUCCESS;
 }
 
 static void sdio_free_irq(struct dvobj_priv *dvobj)
-- 
2.53.0


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

* [PATCH v3 3/3] staging: rtl8723bs: clean up blank lines and function formatting
  2026-05-31 16:58 [PATCH v3 0/3] staging: rtl8723bs: clean up coding style in sdio_intf.c Vitaliy Slivinskiy
  2026-05-31 16:58 ` [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments Vitaliy Slivinskiy
  2026-05-31 16:58 ` [PATCH v3 2/3] staging: rtl8723bs: fix spacing around conditional operators Vitaliy Slivinskiy
@ 2026-05-31 16:58 ` Vitaliy Slivinskiy
  2 siblings, 0 replies; 5+ messages in thread
From: Vitaliy Slivinskiy @ 2026-05-31 16:58 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, dan.carpenter, Vitaliy Slivinskiy

Fix checkpatch.pl checks regarding multiple blank lines, missing blank lines after functions, and function declarations ending with an open parenthesis.

Signed-off-by: Vitaliy Slivinskiy <phant0m.mail2023@gmail.com>
---
Changes in v3:
- Split changes into multiple patches.
- Fixed sentinel entry formatting.

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index 9d936b8349f0..06f1b2ff05f4 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -48,7 +48,6 @@ static void sd_sync_int_hdl(struct sdio_func *func)
 {
 	struct dvobj_priv *psdpriv;
 
-
 	psdpriv = sdio_get_drvdata(func);
 
 	if (!psdpriv->if1)
@@ -151,6 +150,7 @@ static void sdio_deinit(struct dvobj_priv *dvobj)
 		sdio_release_host(func);
 	}
 }
+
 static struct dvobj_priv *sdio_dvobj_init(struct sdio_func *func)
 {
 	struct dvobj_priv *dvobj = NULL;
@@ -214,8 +214,7 @@ static void sd_intf_stop(struct adapter *padapter)
 	rtw_sdio_disable_interrupt(padapter);
 }
 
-
-static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct sdio_device_id  *pdid)
+static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct sdio_device_id *pdid)
 {
 	int status = _FAIL;
 	struct net_device *pnetdev;
@@ -248,7 +247,6 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj, const struct
 	/* 4 3.1 set hardware operation functions */
 	rtw_set_hal_ops(padapter);
 
-
 	/* 3 5. initialize Chip version */
 	padapter->intf_start = &sd_intf_start;
 	padapter->intf_stop = &sd_intf_stop;
@@ -334,9 +332,7 @@ static void rtw_sdio_if1_deinit(struct adapter *if1)
  * notes: drv_init() is called when the bus driver has located a card for us to support.
  *        We accept the new device by returning 0.
  */
-static int rtw_drv_init(
-	struct sdio_func *func,
-	const struct sdio_device_id *id)
+static int rtw_drv_init(struct sdio_func *func, const struct sdio_device_id *id)
 {
 	int status = _FAIL;
 	struct adapter *if1 = NULL;
-- 
2.53.0


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

* Re: [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments
  2026-05-31 16:58 ` [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments Vitaliy Slivinskiy
@ 2026-07-07 10:59   ` Greg KH
  0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2026-07-07 10:59 UTC (permalink / raw)
  To: Vitaliy Slivinskiy; +Cc: linux-staging, linux-kernel, dan.carpenter

On Sun, May 31, 2026 at 07:58:47PM +0300, Vitaliy Slivinskiy wrote:
> Fix checkpatch.pl warning about unnecessary braces for single statement blocks. Also clean up the sentinel entry in the sdio_ids array as suggested by reviewers.

This needs to be properly line-wrapped.

> 
> Signed-off-by: Vitaliy Slivinskiy <phant0m.mail2023@gmail.com>
> ---
> Changes in v3:
> - Split changes into multiple patches.
> - Fixed sentinel entry formatting.
> 
>  drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
> index c43a0391a5ca..f0aa5bc8a38b 100644
> --- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
> +++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
> @@ -20,7 +20,7 @@ static const struct sdio_device_id sdio_ids[] = {
>  	{ SDIO_DEVICE(0x024c, 0x0626), },
>  	{ SDIO_DEVICE(0x024c, 0x0627), },
>  	{ SDIO_DEVICE(0x024c, 0xb723), },
> -	{ /* end: all zeroes */				},
> +	{ }
>  };
>  MODULE_DEVICE_TABLE(sdio, sdio_ids);
>  
> -- 
> 2.53.0

The description doesn't match what you did here :(

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

end of thread, other threads:[~2026-07-07 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-31 16:58 [PATCH v3 0/3] staging: rtl8723bs: clean up coding style in sdio_intf.c Vitaliy Slivinskiy
2026-05-31 16:58 ` [PATCH v3 1/3] staging: rtl8723bs: remove unnecessary braces and comments Vitaliy Slivinskiy
2026-07-07 10:59   ` Greg KH
2026-05-31 16:58 ` [PATCH v3 2/3] staging: rtl8723bs: fix spacing around conditional operators Vitaliy Slivinskiy
2026-05-31 16:58 ` [PATCH v3 3/3] staging: rtl8723bs: clean up blank lines and function formatting Vitaliy Slivinskiy

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