Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp397417pxy; Fri, 30 Apr 2021 07:45:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMTFoMsT/yo1uJu8GYq84nVr9mGuwXwszHJvO1bL4/dbo8Rcb54tpUjF92p8nNZJjTxWnx X-Received: by 2002:a63:d456:: with SMTP id i22mr4884076pgj.204.1619793916661; Fri, 30 Apr 2021 07:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619793916; cv=none; d=google.com; s=arc-20160816; b=CMTX4OgCiRvY0YCC+gaZOvEIwBdjfwdU//onA2Tz4Uaq5HNO6rPQcTnc1JJ0SX5inU 9FUmOZ3YnJZUCR10WSauG/dohqUVX7qubynsgy5inmbGNzojvh0hB24ma50nEiTku2Uc veKeCtPzZMJ7SXoD9pERguoPxZExDRHHqTavwcgHJ0452Jp3dgD/ZC5V1CTOC/+MO71w enxfp50Xao52w6TvksW2b5+KCa0UlL9E2xXQn+CtYd0hsMFzG6Z2uINkwjTzrpqAonut T44SEOuhGIkSBJ86AZLakljhkRDpEcCIALBWlCkmOWUDHT0Fog8oSYD6SQapiRVcroCp GsVA== 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=1TVYammkl8ZNcJo8mdkE77hHWM+9bJ8+VczMb0ee9es=; b=sXDgBzRGs/dmukpPeFXwOBRmKowzdfG1bfNjle43v4kOCvVkca23lOKWcfvpi/Ckni LxjNdi01MQexUMeytFQONAOiXDnSUG2cWisczuZuqtfVjoeyN2UzWBlJ2JHyKZNy6OPB HEtZtidR1fRzU5aKBOqnpuVLVs+Z0MKegRhx3LJKw2cmXaDLbm68wu9Fns1eoiQH1L9N 7n2RRFx4QelE12/jjo/p/SX2FMCv+faVLz4dABxc/YTFVhuPBsU1QMPW8cRvF0JqXIM5 YgK7IhMtnrMwBplHYNmTKmu2i3LJTFqFH0Xo6AoKkXOnH5jztyR9e7WmX/cQFQKobg4d d9Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ROLNYehW; 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 h21si3523403pgg.456.2021.04.30.07.45.02; Fri, 30 Apr 2021 07:45:16 -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=ROLNYehW; 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 S232986AbhD3OpJ (ORCPT + 99 others); Fri, 30 Apr 2021 10:45:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbhD3OpI (ORCPT ); Fri, 30 Apr 2021 10:45:08 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0E2AC06138B for ; Fri, 30 Apr 2021 07:44:19 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id di13so671956edb.2 for ; Fri, 30 Apr 2021 07:44:19 -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=1TVYammkl8ZNcJo8mdkE77hHWM+9bJ8+VczMb0ee9es=; b=ROLNYehWiCXWodRWEvtyY8XHMnwXHViRzlFr8bIHGoX/+EX9KkqUxUz+/lepmCa1RH /aT7tq6+Z0CWoMWDewlbNbu9E6fQdwLUNRWlLOBs5zbJwTH65DlQdzOvSCJeJ3mnswr9 lQLRSFmQx53+xqXvt5XcOONPNKy/3MbKY/CzVIROs1ef1mtwKmNWM6jeMep2RbNP6iDH EgWafhvw2+T+wiTxymvm4n1c1RGTcA5Oq0BgL8XCE1VQuyaeBWfZIETbTj9tdSrF+tVt 7cwW9dhUtV9SFcyKWn/bxUS8mJRBZquD0wf/AwzGUHHXlrLGikQnCDcbfBSlayRGF65u LZ0A== 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=1TVYammkl8ZNcJo8mdkE77hHWM+9bJ8+VczMb0ee9es=; b=CeHdfs/d58v6whrqDFjw9Li2BQ2Wweod7/AkkLRoLf89CjdD+w3cCypt/P1bj8X71B uT+RmAhkhjH87nGk6Z+Z+6CAGcrItE9oTNw8zN/FcVhgdffyOcryupNDoC4zy8864E1h d2uBIFs/xGG7/CPLcR0a7bzyJ2whR/hhnUP8vF+ci9iw1lgWPchhlnfYI4YTDWSv5koA I/LibWJaI3RderUc7v9ddZOriFT6OlTjDdQGAVBFJxCpbqQbzKHKEBaVjit3IDkZzQWV xYF2KHd5uxlhRApgGG0O3lBqUy3nBwQTG13Q5VtNriVCIrrB2h++HUSdXMQJXe2sQrB8 Ndiw== X-Gm-Message-State: AOAM531MhOAjBr9cmQ6f5uwyn410Smx6NQY5eBLylzrnzk6vcFfLS2bZ EgonLSdIsmUpA9Vk5iuStUuRUqtFcoM= X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr6457529edd.327.1619793858364; Fri, 30 Apr 2021 07:44:18 -0700 (PDT) Received: from agape ([109.52.244.36]) by smtp.gmail.com with ESMTPSA id qu23sm2138059ejb.1.2021.04.30.07.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 07:44:18 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/43] staging: rlt8723bs: remove if-else blocks left empty by ODM_RT_TRACE deletion Date: Fri, 30 Apr 2021 16:43:32 +0200 Message-Id: <646608de41fb1ef915834a33453b0a99907d46b0.1619793405.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 by ODM_RT_TRACE deletion. remove unused variables to suppress compiler warnings. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/HalPhyRf.c | 13 ------------- drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 9 +-------- drivers/staging/rtl8723bs/hal/odm_PathDiv.c | 8 -------- 3 files changed, 1 insertion(+), 29 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/HalPhyRf.c b/drivers/staging/rtl8723bs/hal/HalPhyRf.c index 2e10817bf3dd..b8e385fdda89 100644 --- a/drivers/staging/rtl8723bs/hal/HalPhyRf.c +++ b/drivers/staging/rtl8723bs/hal/HalPhyRf.c @@ -118,9 +118,6 @@ void ODM_TXPowerTrackingCallback_ThermalMeter(struct adapter *Adapter) /* 4 3. Initialize ThermalValues of RFCalibrateInfo */ - if (pDM_Odm->RFCalibrateInfo.bReloadtxpowerindex) - {} - /* 4 4. Calculate average thermal meter */ pDM_Odm->RFCalibrateInfo.ThermalValue_AVG[pDM_Odm->RFCalibrateInfo.ThermalValue_AVG_index] = ThermalValue; @@ -273,16 +270,6 @@ void ODM_TXPowerTrackingCallback_ThermalMeter(struct adapter *Adapter) /* to increase TX power. Otherwise, EVM will be bad. */ /* */ /* 2012/04/25 MH Add for tx power tracking to set tx power in tx agc for 88E. */ - if (ThermalValue > pDM_Odm->RFCalibrateInfo.ThermalValue) { - if (c.RfPathCount > 1) - {} - - } else if (ThermalValue < pDM_Odm->RFCalibrateInfo.ThermalValue) { /* Low temperature */ - - if (c.RfPathCount > 1) - {} - - } if (ThermalValue > pHalData->EEPROMThermalMeter) { for (p = ODM_RF_PATH_A; p < c.RfPathCount; p++) diff --git a/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c b/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c index 471418f3f724..858aafc24931 100644 --- a/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c +++ b/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c @@ -689,8 +689,7 @@ static u8 phy_PathA_RxIQK8723B( (tmp < 0xf) ) result |= 0x02; - else /* if Tx not OK, ignore Rx */ - {} + return result; } @@ -988,8 +987,6 @@ static u8 phy_PathB_RxIQK8723B(struct adapter *padapter, bool configPathB) (tmp < 0xf) ) result |= 0x02; - else - {} return result; } @@ -1500,7 +1497,6 @@ static void phy_IQCalibrate_8723B( result[t][2] = (PHY_QueryBBReg(pDM_Odm->Adapter, rRx_Power_Before_IQK_A_2, bMaskDWord)&0x3FF0000)>>16; result[t][3] = (PHY_QueryBBReg(pDM_Odm->Adapter, rRx_Power_After_IQK_A_2, bMaskDWord)&0x3FF0000)>>16; break; - } else { } } @@ -1533,13 +1529,10 @@ static void phy_IQCalibrate_8723B( result[t][6] = (PHY_QueryBBReg(pDM_Odm->Adapter, rRx_Power_Before_IQK_A_2, bMaskDWord)&0x3FF0000)>>16; result[t][7] = (PHY_QueryBBReg(pDM_Odm->Adapter, rRx_Power_After_IQK_A_2, bMaskDWord)&0x3FF0000)>>16; break; - } else { } } /* Allen end */ - if (0x00 == PathBOK) { - } } /* Back to BB mode, load original value */ diff --git a/drivers/staging/rtl8723bs/hal/odm_PathDiv.c b/drivers/staging/rtl8723bs/hal/odm_PathDiv.c index cfcbc3741803..bedce2c10b22 100644 --- a/drivers/staging/rtl8723bs/hal/odm_PathDiv.c +++ b/drivers/staging/rtl8723bs/hal/odm_PathDiv.c @@ -9,16 +9,8 @@ void odm_PathDiversityInit(void *pDM_VOID) { - struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; - - if (!(pDM_Odm->SupportAbility & ODM_BB_PATH_DIV)) - {} } void odm_PathDiversity(void *pDM_VOID) { - struct dm_odm_t *pDM_Odm = (struct dm_odm_t *)pDM_VOID; - - if (!(pDM_Odm->SupportAbility & ODM_BB_PATH_DIV)) - {} } -- 2.20.1