Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH v3 1/4] staging: rtl8723bs: sdio_intf.c: refactor function
@ 2026-05-25  8:49 Manuel Ebner
  2026-05-25  8:54 ` [PATCH v3 3/4] staging: rtl8723bs: cleanup braces of sdio_intf.c Manuel Ebner
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Manuel Ebner @ 2026-05-25  8:49 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Dan Carpenter, Omer El Idrissi,
	open list:STAGING SUBSYSTEM, open list
  Cc: Manuel Ebner

Remove unused argument of rtw_sdio_if1_init().

Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index d0feb28b7043..ff58923e43f1 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -217,7 +217,7 @@ static void sd_intf_stop(struct adapter *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)
 {
 	int status = _FAIL;
 	struct net_device *pnetdev;
@@ -348,7 +348,7 @@ static int rtw_drv_init(
 	if (!dvobj)
 		goto exit;
 
-	if1 = rtw_sdio_if1_init(dvobj, id);
+	if1 = rtw_sdio_if1_init(dvobj);
 	if (!if1)
 		goto free_dvobj;
 
-- 
2.54.0


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

* [PATCH v3 3/4] staging: rtl8723bs: cleanup braces of sdio_intf.c
  2026-05-25  8:49 [PATCH v3 1/4] staging: rtl8723bs: sdio_intf.c: refactor function Manuel Ebner
@ 2026-05-25  8:54 ` Manuel Ebner
  2026-05-25  9:05 ` [PATCH v3 2/4] staging: rtl8723bs: cleanup whitespace " Manuel Ebner
  2026-05-25  9:06 ` [PATCH v3 4/4 staging: rtl8723bs: cleanup braces " Manuel Ebner
  2 siblings, 0 replies; 5+ messages in thread
From: Manuel Ebner @ 2026-05-25  8:54 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Dan Carpenter, Omer El Idrissi,
	open list:STAGING SUBSYSTEM, open list
  Cc: Manuel Ebner

Reformat function declaration.

Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index 63ec486f9a34..fd805ee74a1b 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -334,9 +334,8 @@ 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.54.0


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

* [PATCH v3 2/4] staging: rtl8723bs: cleanup whitespace of sdio_intf.c
  2026-05-25  8:49 [PATCH v3 1/4] staging: rtl8723bs: sdio_intf.c: refactor function Manuel Ebner
  2026-05-25  8:54 ` [PATCH v3 3/4] staging: rtl8723bs: cleanup braces of sdio_intf.c Manuel Ebner
@ 2026-05-25  9:05 ` Manuel Ebner
  2026-05-25  9:06 ` [PATCH v3 4/4 staging: rtl8723bs: cleanup braces " Manuel Ebner
  2 siblings, 0 replies; 5+ messages in thread
From: Manuel Ebner @ 2026-05-25  9:05 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Dan Carpenter, Omer El Idrissi,
	open list:STAGING SUBSYSTEM, open list
  Cc: Manuel Ebner

Add and remove empty lines where appropriate.

Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index ff58923e43f1..63ec486f9a34 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -47,7 +47,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;
@@ -216,7 +216,6 @@ static void sd_intf_stop(struct adapter *padapter)
 	rtw_hal_disable_interrupt(padapter);
 }
 
-
 static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj)
 {
 	int status = _FAIL;
@@ -250,7 +249,6 @@ static struct adapter *rtw_sdio_if1_init(struct dvobj_priv *dvobj)
 	/* 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;
-- 
2.54.0


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

* [PATCH v3 4/4 staging: rtl8723bs: cleanup braces of sdio_intf.c
  2026-05-25  8:49 [PATCH v3 1/4] staging: rtl8723bs: sdio_intf.c: refactor function Manuel Ebner
  2026-05-25  8:54 ` [PATCH v3 3/4] staging: rtl8723bs: cleanup braces of sdio_intf.c Manuel Ebner
  2026-05-25  9:05 ` [PATCH v3 2/4] staging: rtl8723bs: cleanup whitespace " Manuel Ebner
@ 2026-05-25  9:06 ` Manuel Ebner
  2026-07-07 10:20   ` Greg Kroah-Hartman
  2 siblings, 1 reply; 5+ messages in thread
From: Manuel Ebner @ 2026-05-25  9:06 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Dan Carpenter, Omer El Idrissi,
	open list:STAGING SUBSYSTEM, open list
  Cc: Manuel Ebner

Remove braces of one-line if arm.

Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index fd805ee74a1b..32a0ee08f175 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -143,9 +143,8 @@ static void sdio_deinit(struct dvobj_priv *dvobj)
 		sdio_claim_host(func);
 		sdio_disable_func(func);
 
-		if (dvobj->irq_alloc) {
+		if (dvobj->irq_alloc)
 			sdio_release_irq(func);
-		}
 
 		sdio_release_host(func);
 	}
-- 
2.54.0


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

* Re: [PATCH v3 4/4 staging: rtl8723bs: cleanup braces of sdio_intf.c
  2026-05-25  9:06 ` [PATCH v3 4/4 staging: rtl8723bs: cleanup braces " Manuel Ebner
@ 2026-07-07 10:20   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2026-07-07 10:20 UTC (permalink / raw)
  To: Manuel Ebner
  Cc: Dan Carpenter, Omer El Idrissi, open list:STAGING SUBSYSTEM,
	open list

On Mon, May 25, 2026 at 11:06:12AM +0200, Manuel Ebner wrote:
> Remove braces of one-line if arm.
> 
> Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
> ---
>  drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

You are missing a ] on the subject line :(


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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25  8:49 [PATCH v3 1/4] staging: rtl8723bs: sdio_intf.c: refactor function Manuel Ebner
2026-05-25  8:54 ` [PATCH v3 3/4] staging: rtl8723bs: cleanup braces of sdio_intf.c Manuel Ebner
2026-05-25  9:05 ` [PATCH v3 2/4] staging: rtl8723bs: cleanup whitespace " Manuel Ebner
2026-05-25  9:06 ` [PATCH v3 4/4 staging: rtl8723bs: cleanup braces " Manuel Ebner
2026-07-07 10:20   ` Greg Kroah-Hartman

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