]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove unnecessary braces
authorMichael Huang <tehsiu.huang@gmail.com>
Sat, 24 Jan 2026 23:15:56 +0000 (15:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2026 14:46:34 +0000 (15:46 +0100)
Remove braces from single-line conditional statements.

Signed-off-by: Michael Huang <tehsiu.huang@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260124231557.18189-7-tehsiu.huang@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index 5277267e9ef1a3fe2f3d2ab331d7d5a5b97f5735..4ba4f85be02d3be901266d94568e65cd822037f2 100644 (file)
@@ -1120,11 +1120,10 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
 
        pstat->flags &= ~(WLAN_STA_WPS | WLAN_STA_MAYBE_WPS);
        if (!wpa_ie) {
-               if (elems.wps_ie) {
+               if (elems.wps_ie)
                        pstat->flags |= WLAN_STA_WPS;
-               } else {
+               else
                        pstat->flags |= WLAN_STA_MAYBE_WPS;
-               }
 
 
                /*  AP support WPA/RSN, and sta is going to do WPS, but AP is not ready */