Skip to content

Commit 6643ecc

Browse files
ipenas-clgregkh
authored andcommitted
staging: rtl8723bs: remove unnecessary braces in rtl8723b_cmd
Remove braces that are not necessary for single statement blocks to fix checkpatch warnings. Signed-off-by: Ignacio Pena <ignacio.pena87@gmail.com> Link: https://lore.kernel.org/r/20250716175113.81519-1-ignacio.pena87@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c6b3b60 commit 6643ecc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ s32 FillH2CCmd8723B(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmd
5757
if (mutex_lock_interruptible(&(adapter_to_dvobj(padapter)->h2c_fwcmd_mutex)))
5858
return ret;
5959

60-
if (!pCmdBuffer) {
60+
if (!pCmdBuffer)
6161
goto exit;
62-
}
6362

64-
if (CmdLen > RTL8723B_MAX_CMD_LEN) {
63+
if (CmdLen > RTL8723B_MAX_CMD_LEN)
6564
goto exit;
66-
}
6765

6866
if (padapter->bSurpriseRemoved)
6967
goto exit;

0 commit comments

Comments
 (0)