Skip to contentSkip to conversation

staging: rtl8723bs: remove unnecessary braces for single statement

PATCH In review Marcos Andrade 2 participants 3 messages Mar 14 – Mar 15 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 staging: rtl8723bs: remove unnecessary braces for single statement

Remove unnecessary braces for a single statement block in an if condition to comply with the Linux kernel coding style. This resolves a checkpatch.pl warning.

---
Changes in v3:
- Add missing change log as requested by GKH.

Changes in v2:
- Remove unnecessary braces in os_dep/sdio_intf.c to comply with the Linux kernel coding style.

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +1 -2
index d664e2549..a86252cca 100644
@@ -146,9 +146,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);
 	}
Signature · 1 line
2.53.0
#1 lore raw

Hi all,

Apologies for missing the changelog in this v4 submission.

For clarity, the only change from v3 is the correction of the typo ('checkpacth.pl' -> 'checkpatch.pl') in the commit message, as pointed out by Ethan. The code remains unchanged.

Thanks,
Marcos.

Quoted 35 lines · Marcos Andrade

Remove unnecessary braces for a single statement block in an if condition to comply with the Linux kernel coding style. This resolves a checkpatch.pl warning.

---
Changes in v3:
- Add missing change log as requested by GKH.

Changes in v2:
- Remove unnecessary braces in os_dep/sdio_intf.c to comply with the Linux kernel coding style.

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +1 -3
index d664e2549..a86252cca 100644
@@ -146,9 +146,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.53.0

Reviewed-by on v4 1/1
#2 lore raw
In reply to Marcos Andrade
Quoted 6 lines · Marcos Andrade

Remove unnecessary braces for a single statement block in an if condition to comply with the Linux kernel coding style. This resolves a checkpatch.pl warning.

---

I'm not sure if Greg won't mind the v4 isn't here, but since you caught it in a follow up email, this looks good to me.

Thanks,

ET