Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp398936pxy; Fri, 30 Apr 2021 07:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLFS4jU5BwjYNcHLtHUIQpN2WKpaaxia/9FFccwLsEhmu2syn5azKMBt+yfCVeu6ZBEczl X-Received: by 2002:a17:902:8486:b029:ec:c4bb:57d3 with SMTP id c6-20020a1709028486b02900ecc4bb57d3mr5727848plo.24.1619794020031; Fri, 30 Apr 2021 07:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619794020; cv=none; d=google.com; s=arc-20160816; b=mQeDRQagBk0cIQklQFqfM3EYheWStOXMDJdEedFkxskKRy1GARanj/V0xeu5mPaKSQ s9ldLFL4UxNZS63jUQ2VoWIR0DHBcyOHzJQKxZayyqZyebSVmtnWf5fy8HTdwgFsXRHX XMXZYI7eii0aSNUM2D/M+lGiKWVFmG7+8l4PaeI7KyzatRdL5n+YeKjDJw+98VPFg9aT QFeWWSqFu6P3tpAU3TeEBgcde1mDdOZnwUkGF7QZMzJCxaF5lxqENzd6bJshSgvLv2D6 QqpWY2egsziXA2uzMHwAGhNDjQJQY+yd7ViI9E+34GVT4wfA4x9DgmnwUGKXUPol4CBO cKGw== 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=XcKyvrBHCTRlcQmcYjyUvvIDh1GtnE3ZreXlxeMYF/EV+LSjalBwrREmonxT5fa8Z5 ILNufMhTObHirzZIe8xAJLaacUX7HomvGOyMq7D6/FSPNqvSBQxUzl5apCsRSxymq2Qa kz3iKaY90Ux26IGfEFx9ppSMFRsxUCZskL8SsBIqTTETXEPy5Y5ZiYPJKCV+9Bw3TCLF urBYHBZLCYckxRF8pEUE4IkylEeBq8kmsj3YyzStFGoZKUithiZJxy+p5EnlohsF7bi8 5vzfqk1zN/EMAeW4omipikdgU4rXdaPVJBYxoa+zqAKEsw8hhfmB/4cPv4+OXu4Vh1PI 2g8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Hp7VAnbo; 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 q9si3681204pls.236.2021.04.30.07.46.47; Fri, 30 Apr 2021 07:47:00 -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=Hp7VAnbo; 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 S233698AbhD3OqO (ORCPT + 99 others); Fri, 30 Apr 2021 10:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233589AbhD3Opk (ORCPT ); Fri, 30 Apr 2021 10:45:40 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D381DC061344 for ; Fri, 30 Apr 2021 07:44:47 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id j28so18914841edy.9 for ; Fri, 30 Apr 2021 07:44:47 -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=Hp7VAnboDNvGyraKpj+1SLEakveg+O/oIvx6JL6f/ON1JjJdsb/i8uujyLxX+0dRpW GMix+bWECTou1Di7bp5lNn5M1VZZiGVWm4Ic4ZGxnyjabmEN5NacDwYUccRQLwgh4XkE lUQCMYyLH5X8Iph3g7iT6KQvmVJ9+J1na9cV6GCwCMzhebDTbjygbSc2v9i8czPv59YP sb9dX550SGQMDBTuqlCtnzx3PUL67e3wTswETNaWl8KYZD9vn05zWKCtVdAi7xRYZTQr pwJiQIOj7wqnzAtwd6Fso4/DmEH7DZOrqlA3mQlN11cULTvmag3DMCEHR2cNaPqWYIvg +ZkA== 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=rvXCH0ePuz9t4NDLY84KUF0/Dhh0xHDtJH04N02XDP25orRXLK1OQxx8BwIsJFsxlL tWoKQ1woUZzPkGAbdb0aHQyRXowmMdmRWQ6gI0TS/h9zRvMmsCDJVN5VKwv66kBbhwAn 953A64GWgQpeISji9TlXGRSnRMz4W24OKlCt4YNKZRYGRERpFtz4+aD3vAyU0r7QVhRw TMbQwO+BiFS7utNvsQRYz7nlKmmuhyVL2DpB9FUyadbuEvZoBZmR7gvh67uo8SbrfObb SkZxssvotYG6fBPW69q8KFtiIDS7wRKLuojmRCuJq13h/gXczauvhUoWu8ina3T6E8LP iiwg== X-Gm-Message-State: AOAM530fjZP5k8/tG6lMpnJs+t6UIcCqM8aMQ//Rau3L8EbOuvYILQw9 hwic6kxhzbftvdTAFxumgyGNwteWY8k= X-Received: by 2002:aa7:ccc4:: with SMTP id y4mr6244576edt.171.1619793886311; Fri, 30 Apr 2021 07:44:46 -0700 (PDT) Received: from agape ([109.52.244.36]) by smtp.gmail.com with ESMTPSA id mp36sm1985859ejc.48.2021.04.30.07.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 07:44:46 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 21/43] staging: rtl8723bs: remove empty if-else blocks after BTC_PRINT removal Date: Fri, 30 Apr 2021 16:43:51 +0200 Message-Id: <0f900bf15be532f2f224ae17c8fb7615dbca225f.1619793406.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