Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1604070rdb; Mon, 2 Oct 2023 15:10:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwJPdAjDbVv56IiX/UFeK4L9oOaarcdYdh4kaAeYgDaIEmd02lwR5s9fQ7mw4+4oQXC3qi X-Received: by 2002:aa7:88cb:0:b0:68f:f6dd:e78b with SMTP id k11-20020aa788cb000000b0068ff6dde78bmr12365991pff.17.1696284628187; Mon, 02 Oct 2023 15:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696284628; cv=none; d=google.com; s=arc-20160816; b=m2c1dx3YJPZM5zOsRYyABvmx0QeBXT42JspbtD8gpkbdGkKnHeGZMlrarlORsvay0o dH8cAqPxHRKlO1xx0M+Kds3AOyGj2iifR4LEOlgmFYiQ8UXP6lh+tQ2bocurMeDZT/us 0VDoN95snadpd42zlrlt81A/eL7JpzxLW4un4DjjwMb1U84fE/FjJNZskDTBoPNZk+Rg ePefB3bg5oo6xwiEb69KLNGJyK6ECciApD8ER/RdFzZozgmwIjao+VeiXTNNNwUmXh3f lbQTu4udHx9EiH0Rsvma8ot9DsL5YoE+5+X80q02IGklm9CpxWZPJc74tGmv6q7jwkx/ DAIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=Ayat5KM/WUkPq1z1BDmKsHr3rXeO84/wlnct3+KjBfI=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=Z11YkuXwVn4wlyG0/mzZ4x3xFZfkTQjWzaQFNXfTGYi308UlJ0QCMQNXPT2w/O1Zfc iCe5M4Q7kIUNDgjGB63lAmysgiEv+QXZJX9kOo2iSzzIDZvmqXJJfjXjsET+/l0cM6Yc bIMwBWCvF4GNmy2irpiCatsmBwCh069pdQ1gJ0QEJL/m96FdMqWKJ3DtSoERh70o4xfw 5a3T1Jm4udtwnEd7lW8iAlSJzbVMMdvDw0mAuECnxcOdbjrnmR/+AQFdCjkii3h+Uqfz 0L8nAfqbGurXOclvzk8OmNO8szUuaKWOctFbxraq3EkmyokELtNkcWYVjW5jhBOWCQo4 PRYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iJalnKRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id t185-20020a6381c2000000b00578fdfa353asi8545280pgd.402.2023.10.02.15.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:10:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iJalnKRj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 913328047D5F; Mon, 2 Oct 2023 10:53:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237373AbjJBRxg (ORCPT + 99 others); Mon, 2 Oct 2023 13:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238650AbjJBRxd (ORCPT ); Mon, 2 Oct 2023 13:53:33 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89C1F2 for ; Mon, 2 Oct 2023 10:53:29 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-53636bc91a8so1134454a12.1 for ; Mon, 02 Oct 2023 10:53:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696269208; x=1696874008; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Ayat5KM/WUkPq1z1BDmKsHr3rXeO84/wlnct3+KjBfI=; b=iJalnKRjlujpgDH4Q7pZ6TW6hxyhu7cVlVEu7Rb6XgbMbmzT+ZJP+9Wja/2/AWq//L GweeCfNXeYZF4stNsF9lx3uWTW7SPUyzS2gRf3CC64l7P2X5A30FgW1TXvVHDFtQcLeq 8Fi5GHHiB3+h1ARPr8m1L70kbLXTKMgzUtChYNwjbO2jNYeyBdFzAWOAg/M3Ndni7804 sQ2GSW4jdhE3UuqvDy+5Jk/5LEvohR78SQw8cifYW8Eylwn4k7sVOhccDTKeBpPST6Dh NLZf9Yd2NGL8VPPcAzB2x0RXTSOmsP4vd9GCFYewgVQfSbayyXtvUJilRFtdMIMYnJRp L5Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696269208; x=1696874008; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ayat5KM/WUkPq1z1BDmKsHr3rXeO84/wlnct3+KjBfI=; b=WxSUDH9FFy/onfjFFMn8RhIQYXEwDzAsurgWdk7OkMMxwY+XB4fG+lct1YtdbIKlyo xwZPtH6sblfD97/IaorD/xxL8zJPXPLRA/Vv5eqBwFuFtOpEyOfmeL6fZe7CYqcwy1QZ VkLgNBFYCwMdDEsCAJHwAJg98z4mU2nYhe00O9LGAQuEsTcZ5fvFD2mOaISJhVfXA/g9 8t8jlLf1oVAW4olwkm6IQveS+F/jXyhCAlPQQAeTkbXeRptM6NrFDdyKZHUHN4vdwSS/ v9w4DQK5p8Kl+pdEkaStpUxwF2xhHi2sjGAO1fxR7gA+OEMobXBH8vt090hgq5OP8p6A GiMA== X-Gm-Message-State: AOJu0Yx6YvVcdoaVnQo6iiFzI8ZUGdRNrNieYjN+pXbMfP2kLQ4JLO/3 x1oZRagqws38IzJ1c6n612AHeeF5Lok= X-Received: by 2002:a17:906:74d4:b0:9b2:b149:b816 with SMTP id z20-20020a17090674d400b009b2b149b816mr9417257ejl.7.1696269208425; Mon, 02 Oct 2023 10:53:28 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id qk8-20020a170906d9c800b009a1dbf55665sm17183634ejb.161.2023.10.02.10.53.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:53:28 -0700 (PDT) Date: Mon, 2 Oct 2023 19:53:26 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] staging: rtl8192e: Remove unused variable last_ratr Message-ID: <2b91a8f4ec6184c2f16b8f65bdf65c69a4d17458.1696266964.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 10:53:53 -0700 (PDT) last_ratr is written but never evaluated. Remove dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 -- drivers/staging/rtl8192e/rtllib.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 8f5e4b932350..52b9393b55e7 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -370,8 +370,6 @@ static void _rtl92e_dm_check_rate_adaptive(struct net_device *dev) ratr_value &= ~(RATE_ALL_OFDM_2SS); rtl92e_writel(dev, RATR0, ratr_value); rtl92e_writeb(dev, UFWP, 1); - - pra->last_ratr = target_ratr; } } else { diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 004818520ea8..1e474691aa88 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1164,7 +1164,6 @@ struct rate_adaptive { u8 ping_rssi_enable; u32 ping_rssi_ratr; u32 ping_rssi_thresh_for_ra; - u32 last_ratr; u8 PreRATRState; }; -- 2.42.0