]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove spurious if-block braces
authorVincent Caron <vcaron@bearstech.com>
Mon, 14 Jul 2025 13:17:43 +0000 (15:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jul 2025 08:11:09 +0000 (10:11 +0200)
Fix checkpatch "WARNING: braces {} are not necessary for single statement
blocks" in rtl8723bs/os_dep/os_intfs.c:1207.

Signed-off-by: Vincent Caron <vcaron@bearstech.com>
Link: https://lore.kernel.org/r/20250714131743.343482-1-vcaron@bearstech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index 292b5f8dc01b98c6de4d4aad14e4bbea112cbd08..7c498b5e843f045d1aa4bd4243a4ddca83076851 100644 (file)
@@ -1203,9 +1203,9 @@ int rtw_resume_common(struct adapter *padapter)
 
        hal_btcoex_SuspendNotify(padapter, 0);
 
-       if (pwrpriv) {
+       if (pwrpriv)
                pwrpriv->bInSuspend = false;
-       }
+
        netdev_dbg(padapter->pnetdev, "%s:%d in %d ms\n", __func__, ret,
                   jiffies_to_msecs(jiffies - start_time));