Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp431425pxb; Sat, 10 Apr 2021 07:24:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOPjNiUp4KnS3rizd21xAmKcUAzr/jPXIpEM+/2XhcyTVahIrLI47lAEc14NmmGzQxnPXC X-Received: by 2002:a05:6402:274d:: with SMTP id z13mr22272622edd.344.1618064654320; Sat, 10 Apr 2021 07:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618064654; cv=none; d=google.com; s=arc-20160816; b=ElEeLJUYxoqJltspV0B4iWcFj3iOQI0fidm2tA1c7OfbDvB1pRp1ggoCKWh688paiW AHkUBDLcYm/KwjA0lcPEwA4BQncPJDoxbxczYnvTIh2d+KaIlaKFbXTccqguRAHVrR3C EZiKeuRfjkTbsVY38n1lsrh4nD6Ssmiz9JyZt0UigtVzl1yUk4bXHZeQ8Nw5eSXq3htv cTk560UJsnXkVmKbfwLlG/87M3lbuQVWGSj/WIbOrN0dpMXCg+9dzDKE+qGnYd6r3yaU ep9+7m1zXiljh2MdJ956L72tk/RNvZodrg77Cm+tUJIXNhr0U7JJFBE0QnkNHleHmFXD thcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bWrTvJLlhJukbZ2Xh3clrZ9MtMewC92gy97FF8zFOXU=; b=Uv4eUAKZPwCZenn8TcRlgT0Dxs5G+2VTDtZ6IPfy6UEiTssFpAiwkPpyB6oQb6Ijxn AGVX5GKk2azrlN6pV/g9dTeC517emFZq2HF0aNphY5J0FIRtrXsSGzKAPM+Ql9yOyKKn 0vpSYSmXVnoC/cpCklQJqVVvRLwoZympwwzTRPtfszM3pWZEMkogkjAcoxj1odBa5Xwt HRlRpWpyut50ZAeTQPZbn7oFy/ywBuzszkc5gbL/EuCV3Y1g916xTTh1CUbWU/IXt9hm kdIKQFhQcP9q4gRhKW6m9SWkFNox4b8aXecrwKRfraBxkN7UE2zVwFtMlDRDaGvY96BC 4a2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMAkND35; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si3848664eje.44.2021.04.10.07.23.51; Sat, 10 Apr 2021 07:24:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMAkND35; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234864AbhDJOVI (ORCPT + 99 others); Sat, 10 Apr 2021 10:21:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234809AbhDJOVD (ORCPT ); Sat, 10 Apr 2021 10:21:03 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8502C06138A for ; Sat, 10 Apr 2021 07:20:48 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id e14so13012743ejz.11 for ; Sat, 10 Apr 2021 07:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bWrTvJLlhJukbZ2Xh3clrZ9MtMewC92gy97FF8zFOXU=; b=aMAkND35GyNP6mziH5kPabnmK7di7VJ237D1zNm1RjC/eydnhRiltjaBnnDq3UZ1IE QROd4q0ByNrXsqABMd1vU7cNio6siv+octBGk6yDRpZZvsM0+XGvOU/4tDdzPk9dqh8S xjBYmfMZQ6/exF0mdxK/Lwl7WA0o7xHUqBhqgBkhoYKWkXq7IFc49ZrbSQA2L0nOPPmi 7Kl9XJ5auoeFfUPHOkSe+0Xx/04KtQjtok15PuTHuuASjxJxn21or2Epsc92CzDQe3mJ I0iDi5BKAlZrkdiPTD0va/os5iYqOhVwgmxQvXC1DMRmzdE0+stkuibeMjMjOoufMgBX Ulsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bWrTvJLlhJukbZ2Xh3clrZ9MtMewC92gy97FF8zFOXU=; b=YWVtmLZvFl9XikMfp26wPVDKa9zsyteYzqPrHWa1GxGWh+RSLZBw0U3i5NH8RNxgTI p2zaJWDFEdBdMLmk3zn9FLtj8T3oBJmROr/Mbrq4U836RKQDMmj7MA+R66jPB7Gt3AqL LQrlVdZMVgnYL0P3s/IeMyPVXSmvUB2D+fK9AVRDHG4Lk/wywhNF9NlW6WQBGWb9mMBr arjc4DSWJkZzDE2sQquEuDLJ9Tgue3mBtpZmsAHdbN4aXQeEunipVjNrK/SrbLYFViZw w+BNfcpr2Wy6xcL6m06UAH4RxAK0nXpzrBpcde8Oc/KXuqfTp96G4ivIcx2RNY4WnRDd YoRw== X-Gm-Message-State: AOAM533CG8zL0IKbV6U34XaJUR4MSbPY67W4Mc4q1Y4IQQ2QDOvN5zwn Dus52+v/gRxvaynio8V5Jvwwzs5paWipkQ== X-Received: by 2002:a17:906:4ec3:: with SMTP id i3mr3886240ejv.119.1618064447268; Sat, 10 Apr 2021 07:20:47 -0700 (PDT) Received: from agape ([5.171.81.28]) by smtp.gmail.com with ESMTPSA id w2sm2681603eju.71.2021.04.10.07.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 07:20:46 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 04/25] staging: rtl8723bs: remove all if-blocks left empty by DBG_8192C-remove coccinelle script Date: Sat, 10 Apr 2021 16:20:17 +0200 Message-Id: <1676083964fe176e996c2c05dfdcb723b49febb6.1618064274.git.fabioaiuto83@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove all empty if blocks left empty by coccinelle script for DBG_8192C macro removal. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/sdio_ops.c | 17 ----------------- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 15 +-------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c index 763dd6062c74..4403ccdaf2ee 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_ops.c +++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c @@ -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; diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index b7dffdaffda7..6d5109aa4b69 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -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); -- 2.20.1