staging: rtl8723bs: remove all if-blocks left empty by DBG_8192C-remove coccinelle...
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sat, 10 Apr 2021 14:20:17 +0000 (16:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Apr 2021 06:45:02 +0000 (08:45 +0200)
remove all empty if blocks left empty by coccinelle
script for DBG_8192C macro removal.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/1676083964fe176e996c2c05dfdcb723b49febb6.1618064274.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

index 763dd6062c7434d0be181d3d2030415ce92255cf..4403ccdaf2ee20459ed33576bc500a1bad9e3ce8 100644 (file)
@@ -596,12 +596,6 @@ s32 sdio_local_write(
        s32 err;
        u8 *tmpbuf;
 
-       if (addr & 0x3)
-               {}
-
-       if (cnt  & 0x3)
-               {}
-
        intfhdl = &adapter->iopriv.intf;
 
        hal_sdio_get_cmd_addr_8723b(adapter, SDIO_LOCAL_DEVICE_ID, addr, &addr);
@@ -926,11 +920,6 @@ void sd_int_dpc(struct adapter *adapter)
                }
        }
 
-       if (hal->sdio_hisr & SDIO_HISR_TXBCNOK)
-               {}
-
-       if (hal->sdio_hisr & SDIO_HISR_TXBCNERR)
-               {}
        if (hal->sdio_hisr & SDIO_HISR_C2HCMD) {
                struct c2h_evt_hdr_88xx *c2h_evt;
 
@@ -952,12 +941,6 @@ void sd_int_dpc(struct adapter *adapter)
                }
        }
 
-       if (hal->sdio_hisr & SDIO_HISR_RXFOVW)
-               {}
-
-       if (hal->sdio_hisr & SDIO_HISR_RXERR)
-               {}
-
        if (hal->sdio_hisr & SDIO_HISR_RX_REQUEST) {
                struct recv_buf *recvbuf;
                int alloc_fail_time = 0;
index b7dffdaffda7d00463b5ea61efe75faafaa0e6cd..6d5109aa4b6976d1b3568aba1d23a48a08821137 100644 (file)
@@ -1635,13 +1635,6 @@ static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t iel
 
        memcpy(buf, pie, ielen);
 
-       /* dump */
-       {
-               int i;
-               for (i = 0; i < ielen; i = i + 8)
-                       {}
-       }
-
        if (ielen < RSN_HEADER_LEN) {
                ret  = -1;
                goto exit;
@@ -1874,11 +1867,6 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
        ndis_ssid.SsidLength = sme->ssid_len;
        memcpy(ndis_ssid.Ssid, (u8 *)sme->ssid, sme->ssid_len);
 
-
-       if (sme->bssid)
-               {}
-
-
        if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true) {
                ret = -EBUSY;
                goto exit;
@@ -2440,8 +2428,7 @@ static int rtw_add_beacon(struct adapter *adapter, const u8 *head, size_t head_l
        len = head_len+tail_len-24;
 
        /* check wps ie if inclued */
-       if (rtw_get_wps_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &wps_ielen))
-               {}
+       rtw_get_wps_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &wps_ielen);
 
        /* pbss_network->IEs will not include p2p_ie, wfd ie */
        rtw_ies_remove_ie(pbuf, &len, _BEACON_IE_OFFSET_, WLAN_EID_VENDOR_SPECIFIC, P2P_OUI, 4);