mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c6b3b6049b
commit
6643eccdc6
@@ -57,13 +57,11 @@ s32 FillH2CCmd8723B(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmd
|
||||
if (mutex_lock_interruptible(&(adapter_to_dvobj(padapter)->h2c_fwcmd_mutex)))
|
||||
return ret;
|
||||
|
||||
if (!pCmdBuffer) {
|
||||
if (!pCmdBuffer)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (CmdLen > RTL8723B_MAX_CMD_LEN) {
|
||||
if (CmdLen > RTL8723B_MAX_CMD_LEN)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (padapter->bSurpriseRemoved)
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user