Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp408743pxy; Wed, 28 Apr 2021 06:48:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymsdNyOqba605ecJuoxTo5x5dFm/gFEBKMuEVL2IQ0NW4FCAqvNWsVwxhH2X0stSm+s9l5 X-Received: by 2002:a05:6402:40ca:: with SMTP id z10mr11328889edb.215.1619617681684; Wed, 28 Apr 2021 06:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619617681; cv=none; d=google.com; s=arc-20160816; b=IFbXLvlr0hylPIAzT2QSHXd8CzhgT6wfEa6RtA9gcCkl3JwHK9peGY+8S2/AvmRikk fp4J0YmzlF9XBa3KQjq5inx23wxAfTr1oxI8iOQFLAh49Nj/xGBGfkJzyQdQYSuzYx6b Wer4Lo6HQbeW+CLwoLk2DRI6kWNZNAZ3oSM0y3CHSeBmZ9HsZAojmAU0PpfJ8GeQbTJu PnEc8+nZADq0sXj8fPFecFGtvKR4+Mv1QtvU/q4h+tQ0/PmY7SoN2Ke2X+S61hlx6sA9 ZkLhiGnfaJUy5MxctZ702MQlo/TI3SH6MlBhFf+U/HsihqcH3NP8kRL2m/n/cS+lDs1S /Zkw== 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=3hJ076sy9pVna7YQDPLSat0KUjjKGv3lXcjm2Wa8PnI=; b=GvL+iZIjxDIC/nbjhlxekV43SXZ+2rTih4YtXZUqhKxJuShBLPkoLwpSAJsW7rGelW Jc/4Y+rBe+FKk0nWu0+0Cao1zMvZsZVf5VmPlJc/26HTWVSPHBb6Swu40iEuWMj0pWWa WQkUM2/c9b69PJtLyVWyFPc5Be62shqIGvg8634EyznBe3q1H0jlfGCu0qCqu8FPTaPT IvoTBHVfTpzdKLWjScO3EOOclEyODGOUB8v71r0DoLgmiq1YxPKKtJ3IML3GdNu5BjZa DiIC/qmUSHsMEbY+0TiRuB+N9wK9eIFb4GB6X/sMUsgXnZ6RFgwD1Y17f2ko6WpT+mIy UFXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MGPO7igd; 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 v13si6971896edl.152.2021.04.28.06.47.38; Wed, 28 Apr 2021 06:48:01 -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=MGPO7igd; 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 S239453AbhD1Lel (ORCPT + 99 others); Wed, 28 Apr 2021 07:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239440AbhD1Lek (ORCPT ); Wed, 28 Apr 2021 07:34:40 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71444C061574 for ; Wed, 28 Apr 2021 04:33:55 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id e7so73682194edu.10 for ; Wed, 28 Apr 2021 04:33:55 -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=3hJ076sy9pVna7YQDPLSat0KUjjKGv3lXcjm2Wa8PnI=; b=MGPO7igde+CUkjMBdr0MSCg4rDhl1Wmpu/RDuySNCtNXEWFnpTm6knupqo9XDt5TkZ 5cvq/83Z9Lp2W3kwTSj8PKvvrMIyeAJEiW7sNKN09ER+WhAPXB2jzyVuv5xWujAAvwM2 RtbVTQlS75qSFDhQO53ahu594ISkP1uI+cl5TXqfZt6wsuDp5mExfKQ873vs6S7nwHnW t3zQsrwuSRquAKGjOqOAlyVNaPde6ltHTHNzZBGcBd3IUUxGJYLfFC0gGU/owwzo3vRj as0Dg9j6KlKFoqBYhrVbvVASkLgImGwlW+tY8q5+p6ryFz9ohSN9DVudUbma+96U3peX 8gwA== 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=3hJ076sy9pVna7YQDPLSat0KUjjKGv3lXcjm2Wa8PnI=; b=RmJHlZVqo09y520VjL5HEzbVZkA9lwyaxLIwIJh8HYBVlaLGg9PRDl4G6pcIVg9Jfj VTlzPwReRsMp/6hByuaUEFlMaEqrxKI+XkjQsNE5dLniOha497rqfbAmbmVPl4+b4ARD KCXLLrB5VpXnKcQq4pv51I7PxWm6yzRhvMUztmP+BGwHCj5ZggC8Fztx0LQG+wMKdUUQ KQfGRgvFNZ3tmfvIMDjF2ebgiQw2j+9CPdIOreGt32MHtZnoDPZFiuOCLMK+4+FI9Hny HzdMPg1S5tea0Lug+QM6JfFCbEcZcZcAB2F0JGKYS1iFVUeRfIW4XKMVOhCZ7ssLMeMU q72w== X-Gm-Message-State: AOAM532MyojAuJ7pW3AykwoVeMFvKLRNr54eA/iR/HcGwNR4i0p8LDjG Ih5nYXGCGc9WSYCsKnck8Do= X-Received: by 2002:a05:6402:484:: with SMTP id k4mr10478955edv.321.1619609634249; Wed, 28 Apr 2021 04:33:54 -0700 (PDT) Received: from linux.local (host-79-52-107-152.retail.telecomitalia.it. [79.52.107.152]) by smtp.gmail.com with ESMTPSA id u19sm4677187edy.23.2021.04.28.04.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 04:33:53 -0700 (PDT) From: "Fabio M. De Francesco" To: outreachy-kernel@googlegroups.com, Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: "Fabio M. De Francesco" Subject: [Outreachy kernel] [PATCH 1/2] staging: rtl8723bs: hal: Remove set but unused variables Date: Wed, 28 Apr 2021 13:33:45 +0200 Message-Id: <20210428113346.28305-2-fmdefrancesco@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210428113346.28305-1-fmdefrancesco@gmail.com> References: <20210428113346.28305-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removed four set but unused variables. Issue detected by gcc. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c index 082448557b53..96cb4426a0f4 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c @@ -3900,14 +3900,11 @@ u8 GetHalDefVar8723B(struct adapter *padapter, enum hal_def_variable variable, v u32 cmd; u32 ra_info1, ra_info2; u32 rate_mask1, rate_mask2; - u8 curr_tx_rate, curr_tx_sgi, hight_rate, lowest_rate; cmd = 0x40000100 | mac_id; rtw_write32(padapter, REG_HMEBOX_DBG_2_8723B, cmd); msleep(10); ra_info1 = rtw_read32(padapter, 0x2F0); - curr_tx_rate = ra_info1&0x7F; - curr_tx_sgi = (ra_info1>>7)&0x01; cmd = 0x40000400 | mac_id; rtw_write32(padapter, REG_HMEBOX_DBG_2_8723B, cmd); @@ -3916,8 +3913,6 @@ u8 GetHalDefVar8723B(struct adapter *padapter, enum hal_def_variable variable, v ra_info2 = rtw_read32(padapter, 0x2F4); rate_mask1 = rtw_read32(padapter, 0x2F8); rate_mask2 = rtw_read32(padapter, 0x2FC); - hight_rate = ra_info2&0xFF; - lowest_rate = (ra_info2>>8) & 0xFF; } break; -- 2.31.1