Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp336318pxf; Thu, 1 Apr 2021 02:24:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlDmbFFC8rAi2fiqLOQ+zllypCz0Fow79YDUa1HN+GfFbwnSmfWRevcwY2rsp8Uo7V3zjH X-Received: by 2002:a17:906:f9db:: with SMTP id lj27mr8153908ejb.399.1617269093336; Thu, 01 Apr 2021 02:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617269093; cv=none; d=google.com; s=arc-20160816; b=yape5qxKSigj3OIznSDx94rC4jfsF+fW5ynekrpmozS7nc9q8KihBKyG2ApBpZBl6W 6Af6NRVgn0a0hO3Wh24RQjyTbbO1SuY6ybmfx3TIGAuagOd1HoPFB9ia7reXBjyT13Wd 6StiWJ4ItnGhNJj9DmCakrAbDYmYeKhS3FH1Rt3XghDRqCKq9PHOCJ951In/avfXcxdh pRP0QAMnlSSthLA88Zoot1DoMLXxXudmOgFy8rl3PwI6wgSnDtM34NsPo2Q9+VWyXOjp 1TEkuEY9/rMa2coN/VDGCgD3yMwU3XIKFwPSPpmR8xvPBSSMpJzxBdOCthlGbFNEpa9j yLSg== 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=T/0KpG9qJzUFrcObdFWrqj3M4DpTo/B6MAsgxOwfgZw=; b=JPaTgB6DHorKWbnWsib/vnS1UmimgUUHk7qyPAzGM45OQp1w/nX2mt12zCWYAMK1op bCXMkWd1IN6R9dk3U0DnF5xYQvPMEGQ/HfpyG9GQPRUoaK8DBXh+EcvNO48/4WOZb7ux L1o9mbxObb6qFv9fEOiyhOMnnGVio9cwN/puBvCLaGCJTj4mCYEsKQWQX+VN+X5xEyQy OomSwBN8QpHYz1iXpy8tRIgIL8HX5A3piM9roq04hMOOBDoZqXvvOem5ObDSgYxb1pMB bozfyww/ZIETaR1qmJMA8fXVK+NdGynoBLeHzHRLPH+S1yNFExLl78BF/R249EQRtjVu GPlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Mywg/Aw5"; 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 q16si4003886edd.8.2021.04.01.02.24.30; Thu, 01 Apr 2021 02:24:53 -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="Mywg/Aw5"; 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 S234286AbhDAJXe (ORCPT + 99 others); Thu, 1 Apr 2021 05:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233901AbhDAJWT (ORCPT ); Thu, 1 Apr 2021 05:22:19 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C54BAC0613E6 for ; Thu, 1 Apr 2021 02:22:18 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id u9so1837935ejj.7 for ; Thu, 01 Apr 2021 02:22:18 -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=T/0KpG9qJzUFrcObdFWrqj3M4DpTo/B6MAsgxOwfgZw=; b=Mywg/Aw5tfjCqpn+8AAvs2eJ9ogyLGXlI7ivF47TcKwvkSg2Frtlnsh+2xzCEToCKV vZOdtCojJ4O6LBSw8MxuxacuayiG48O7Tx+lqSPyJVCWSbTL7xCS6dpmC3dKoGMrqf71 5RgxtSdo6xncSg1Qa9MeNzqMcPKOBWF02xKslXnjZkfJG0ZyDl13VgrpE8E9jb6CbtYJ a6Kr8vq7bHnnHeGMPJl5yPm8Xu43WBa7/ajtvSqDxc5A4ydKWGtqdeFa69RG6A4YNHyt WbNFbTMz31ZnaKKJsD56UnUdbK+OOABkOHJMxgKhK/BxsOmkkFe8FW4kXvRch2IX4yb+ 51CQ== 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=T/0KpG9qJzUFrcObdFWrqj3M4DpTo/B6MAsgxOwfgZw=; b=pyAv3o4WbmmYImUIWly3bUZtagx2sTNF6AP4l7UgGODVEvS6jebqjI0Gxg0uXkJ6Mj MKqZ/2MmjBDBhrhrF+YBnmKg+BdLakvsO0GF1F7gfv286G7oGLQltvFSoaOARSvFL/yO CU7ziGrcQ7YjQwYq3iLITG1N/7l1obU6HDUvjNq0BTALYhfMKp0hOG/kY/+2lgMbQOqf HSPSkfPPI1GzrxtoepzJk7j6v1J6RPWELObaGsQ9GZcv2Jvsp84H0kslUFb9oh0+4pT0 AZWFXTvXtOJgmzoEEfnKjZ/ICWZNhtKTEc5nbPIdeBdgNLWo3bcfb1Qxl50gjW0XTwse VJ+g== X-Gm-Message-State: AOAM532kPldV3aqF0fK3QndngBmq7bL1rPp4HR84JPLO02449R/b82Jm zfYpCwJxcCZcamPNTvswX70= X-Received: by 2002:a17:907:2062:: with SMTP id qp2mr8063522ejb.397.1617268937616; Thu, 01 Apr 2021 02:22:17 -0700 (PDT) Received: from agape ([5.171.80.247]) by smtp.gmail.com with ESMTPSA id u14sm2462629ejx.60.2021.04.01.02.22.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 02:22:17 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: joe@perches.com, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Fabio Aiuto Subject: [PATCH 33/49] staging: rtl8723bs: remove empty else-blocks in hal/rtl8723b_phycfg.c Date: Thu, 1 Apr 2021 11:21:03 +0200 Message-Id: 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 empty else-blocks Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c index 2b9254000526..89d3c2fc0926 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c @@ -550,7 +550,6 @@ void PHY_SetTxPowerIndex( DBG_871X("Invalid Rate!!\n"); break; } - } else { } } @@ -649,8 +648,7 @@ static u8 phy_GetSecondaryChnl_8723B(struct adapter *Adapter) SCSettingOf40 = VHT_DATA_SC_40_LOWER_OF_80MHZ; else if (pHalData->nCur80MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_UPPER) SCSettingOf40 = VHT_DATA_SC_40_UPPER_OF_80MHZ; - else - ; + if ( (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_LOWER) && (pHalData->nCur80MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_LOWER) @@ -671,15 +669,12 @@ static u8 phy_GetSecondaryChnl_8723B(struct adapter *Adapter) (pHalData->nCur80MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_UPPER) ) SCSettingOf20 = VHT_DATA_SC_20_UPPERST_OF_80MHZ; - else - ; + } else if (pHalData->CurrentChannelBW == CHANNEL_WIDTH_40) { if (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_UPPER) SCSettingOf20 = VHT_DATA_SC_20_UPPER_OF_80MHZ; else if (pHalData->nCur40MhzPrimeSC == HAL_PRIME_CHNL_OFFSET_LOWER) SCSettingOf20 = VHT_DATA_SC_20_LOWER_OF_80MHZ; - else - ; } return (SCSettingOf40 << 4) | SCSettingOf20; -- 2.20.1