Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp91679pxy; Fri, 30 Apr 2021 00:46:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYk7LbVKi9Yps6I5vsxBgO0qYmARrK+3+ZPOI0PAZcAndA6ptgepos03PnVzvqRVDjBFQ6 X-Received: by 2002:a17:902:e051:b029:ed:7646:49c4 with SMTP id x17-20020a170902e051b02900ed764649c4mr4121206plx.55.1619768806866; Fri, 30 Apr 2021 00:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619768806; cv=none; d=google.com; s=arc-20160816; b=WoLn998FWAS9QqXWStOP5NAOctSSJe9rCJ/C/lwTfFHzYtg4D+tHI1TbPlfBtz7ov+ PJj3HbgL6+YZS+x7omDiozcU4fRAZ1Ymg0v8vt8kveNreXn1FVZgSI389ft6ac5Nk+cx Zx2tH2AIaDBKytPlBQMkvFtqmurJMKEC6FN2dZfmMPvS/7oEOMgD5lY6EtevNB2VzbfC mFaL5NWQ3be/Ug5fIHuL6VlEg04blEERsCGACyneRO7KzOxlFrkeAxLgkG/WTqZUwdFl NcFIYiBtsmEJEiFDwKm1QDJhTkcJhzejbjqxebBvTm9kWN7P9I9EWfoXwd2ERfkJaMHN Qb9Q== 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=auqmHaougiorEJiold25Fwbfcoe9phFoSmF9xCEzReU=; b=awdnToLKV8dp0gZXggWRZwpZqtGQOsVvuugugokkdA/CV24OIL9mcYkIVfTh+JOr0i 2UJyUB0dhK6VT+wXxwCFBEtUejKnpdPNf51bJCvlLjwXwlw0XXdeoiZvoc5yoOoF9k7J iPKZDOh45mzHZ/fAHl2LXadmwGG8kfSOr49czaAG3+3oBV2zBSlqR/y09+Hl2Ix2Ra2u kChuA+/PyOqt1x5ztLOiwi1BPWKp7UeI96EbANCrskHQIwbXne804oBEzvk7bzrvK4GX p1CqLdrZUEvp7fo+52FwDCSNMxeSmTa09lpDui7Yw05s0jSgrS4misT94Z7l1uJWb7pK D98w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h1YveRiE; 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 v10si2718974plp.428.2021.04.30.00.46.34; Fri, 30 Apr 2021 00:46:46 -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=h1YveRiE; 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 S231673AbhD3HqD (ORCPT + 99 others); Fri, 30 Apr 2021 03:46:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231289AbhD3Hpa (ORCPT ); Fri, 30 Apr 2021 03:45:30 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B527C06138F for ; Fri, 30 Apr 2021 00:44:41 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id u21so103858837ejo.13 for ; Fri, 30 Apr 2021 00:44:41 -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=auqmHaougiorEJiold25Fwbfcoe9phFoSmF9xCEzReU=; b=h1YveRiEHzhMBx7bMTTxjBqHEVv3TSrCoClhOQydIoBNi/UvnQxcLxWX5UnUrGRvI+ EKGcC+pFs77Z4NidOadyWqxLcaPZkIlGrHJldgHmoXko/j9QwewwM/gb5aT+J21w8q2A y2GKDWyGLccvYrWA0tWWO3wWyEBHA2Aypjl00Vq8uqP5JqzSWsLiQWPjb2k1LwXlWctS YXbN+dLBFFRQVnmMlHbW2ww2tj4OtC3I+QJcVc0DBaQljq3DZYd2byX26E8qbXMbv14f LXJeWZlQNm62JdEJGUxooapH0+J2uCNfxt+aVzAnoLDtGCm15PY8osRGmjOM/9Q5412c fquA== 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=auqmHaougiorEJiold25Fwbfcoe9phFoSmF9xCEzReU=; b=OtXSdqQWFy3SQMgK/Kwy54qVU8bcnKzzfJQ89O0+qOPJg705KnKDmVY2g8WTD2i7Pm QHsCahqe6dBvJJlz5eEYxA0OrsJhpfa9LGK80NbPumszlyT7iKa82DdLNT5NbpMTBI93 l9q5hnwRILT9Fpu18qJwcj90n5Jj7U7SUFmWN285gfJvFP5cKkdEeI/WSCTzZtWl/u0d qTBw8Hsz/aaLbtHTeA+WJPk0fClOP7nZVGogIQXUbQGz9v9iEISobgCNQn7JN2eBPHNA oGplHrGhGTTHcBSHZKbH5eVdesJr/rpb+j3XTamQZKf1MtJQkj14gXXu8blV2E9Z3dtC QbbA== X-Gm-Message-State: AOAM532WxIBHbKcRZUjYl/Zat9ZE7wuQG5TPBR8+67C5mBfKnYpKnGI4 l726qTZl/iltFYnaCpij09QLZ1KU5GbVGg== X-Received: by 2002:a17:906:6703:: with SMTP id a3mr2822710ejp.240.1619768679671; Fri, 30 Apr 2021 00:44:39 -0700 (PDT) Received: from agape ([5.171.81.86]) by smtp.gmail.com with ESMTPSA id b19sm622470edd.66.2021.04.30.00.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 00:44:39 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 21/43] staging: rtl8723bs: remove empty if-else blocks after BTC_PRINT removal Date: Fri, 30 Apr 2021 09:43:39 +0200 Message-Id: <56cb29d5559b7db9bbcbfc14bfbf6118973434db.1619768150.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 if-else blocks left empty after BTC_PRINT removal. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 16 +--------------- drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c | 12 +----------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c index 28f41a637c96..57579d7eab71 100644 --- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c +++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c @@ -606,8 +606,7 @@ static u8 halbtc8723b1ant_ActionAlgorithm(struct btc_coexist *pBtCoexist) pBtLinkInfo->bPanExist && pBtLinkInfo->bA2dpExist ) { - if (bBtHsOn) { - } else { + if (!bBtHsOn) { algorithm = BT_8723B_1ANT_COEX_ALGO_PANEDR_HID; } } @@ -1063,10 +1062,6 @@ static void halbtc8723b1ant_PsTdma( pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy); - if (pCoexDm->bCurPsTdmaOn) { - } else { - } - if (!bForceExec) { if ( (pCoexDm->bPrePsTdmaOn == pCoexDm->bCurPsTdmaOn) && @@ -1373,10 +1368,6 @@ static bool halbtc8723b1ant_IsCommonAction(struct btc_coexist *pBtCoexist) bCommon = true; } else { - if (bWifiBusy) { - } else { - } - bCommon = false; } @@ -1528,7 +1519,6 @@ static void halbtc8723b1ant_TdmaDurationAdjustForAcl( halbtc8723b1ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, 1); pCoexDm->psTdmaDuAdjType = 1; } - } else { /* no change */ } if ( @@ -3012,10 +3002,6 @@ void EXhalbtc8723b1ant_BtInfoNotify( pCoexSta->btInfoC2h[rspSource][i] = tmpBuf[i]; if (i == 1) btInfo = tmpBuf[i]; - if (i == length - 1) - {} - else - {} } if (BT_INFO_SRC_8723B_1ANT_WIFI_FW != rspSource) { diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c index 73f1cc6bc27c..15304feb2442 100644 --- a/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c +++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c @@ -1621,8 +1621,7 @@ static void halbtc8723b2ant_TdmaDurationAdjust( if (!bScan && !bLink && !bRoam) halbtc8723b2ant_PsTdma(pBtCoexist, NORMAL_EXEC, true, pCoexDm->psTdmaDuAdjType); - else { - } + } } @@ -2859,10 +2858,6 @@ void EXhalbtc8723b2ant_MediaStatusNotify(struct btc_coexist *pBtCoexist, u8 type u8 wifiCentralChnl; u8 apNum = 0; - if (BTC_MEDIA_CONNECT == type) { - } else { - } - /* only 2.4G we need to inform bt the chnl mask */ pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, &wifiCentralChnl); if ((BTC_MEDIA_CONNECT == type) && (wifiCentralChnl <= 14)) { @@ -2889,8 +2884,6 @@ void EXhalbtc8723b2ant_MediaStatusNotify(struct btc_coexist *pBtCoexist, u8 type void EXhalbtc8723b2ant_SpecialPacketNotify(struct btc_coexist *pBtCoexist, u8 type) { - if (type == BTC_PACKET_DHCP) { - } } void EXhalbtc8723b2ant_BtInfoNotify( @@ -2915,9 +2908,6 @@ void EXhalbtc8723b2ant_BtInfoNotify( if (i == 1) btInfo = tmpBuf[i]; - if (i == length - 1) { - } else { - } } if (pBtCoexist->bManualControl) { -- 2.20.1