From patchwork Wed Jan 18 19:59:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 45452 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2534598wrn; Wed, 18 Jan 2023 12:00:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOJDWJDk0ZNJyd9y58+0JD5bm7cCLPj/UI/NUMfO5SXxxdmg8ZFQgsj+2J+Sa3qaz/jlqn X-Received: by 2002:a05:6a00:3006:b0:58b:5f9d:c2fe with SMTP id ay6-20020a056a00300600b0058b5f9dc2femr8179731pfb.29.1674072041620; Wed, 18 Jan 2023 12:00:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674072041; cv=none; d=google.com; s=arc-20160816; b=IAGyWsAk8RlUsB4pWRF3/O6UjPTKRvrGAHm2kfoLuBuWSA36/RMvUbZiijxqI9GAGP u/W3sxMseuw2GKcL7M2lOgyt4Mxu1FfjIRpRUijAKU1rRE12Ul+vT8Ur24mjyLze8ijY Ic2IUwDWJ5XYOoCd5+CiqIXgL2ca/kwcpjgDx0xICXJUZ+Um0M08SehdHF2gEvudHhd6 +n2HxEzMqmdppcQNT6r6AbHXQlnC8EPmj5hHBIt8kXOTs7V2ubyhXjxFDOVdeMku5B/B gbyBeVUmTLcwZpIbXinQnpTZalPfKTuavODM2NtnkthDJcWRVMSdhnfdLHtnJ8Uf/phZ 5l1Q== 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=F6Bdv7nTejW0X4oYcoZpe18GPl2p/Zqclu64+iodiD8=; b=LQk1Pj7/TB/3IsJjr472DHhayti0wQ0giskLB8LPGQKbtMkxxdXcBbdcXYMbwnMyzV xt7deuxiknAwMg+Ho+wzqrEiustjrMI25pNs7BpN11suyPHEn0tqsJXLqB3eTXeyJEyF u8yNT9FbYRErAvZEEUPYxqtYtlr5XGv3IyI6o+PZG6C4rwDMAU4e90YPa8B+QC0OiAxo HKW620Oak/qaP0tqivclpQowwMoABDL7mHrF5482/CzKRwj6tceMqxeLideY5XJBiGgU ZfyK4/7uHAx1/tOFT0EKr5yxM4XvGc4kvF5kNG4OCWdEbIlRN3TFUikk8+8CioGVbjD4 fOgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CYVT5Rpp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a056a001ad400b0058db4725798si8961946pfv.160.2023.01.18.12.00.29; Wed, 18 Jan 2023 12:00:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CYVT5Rpp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229752AbjART7a (ORCPT + 99 others); Wed, 18 Jan 2023 14:59:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjART7S (ORCPT ); Wed, 18 Jan 2023 14:59:18 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7AAD5A817 for ; Wed, 18 Jan 2023 11:59:17 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so1716553wmq.1 for ; Wed, 18 Jan 2023 11:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=F6Bdv7nTejW0X4oYcoZpe18GPl2p/Zqclu64+iodiD8=; b=CYVT5Rppani6wxwY8+voluYiPSOsncCvGa+9pYIBABQO8FxN6ytHC1WoU8lTwWHT3w V5mDrRk2t9+TMd0VmG2rX5cufRRP3IgKhHLV6AyfPj6GhswQ1fvVJOoBklO7WKrfPpjk gbAHGglQccmMoF1oskhLNOLNk9zt1WOwUU9ZClWevBf2+HBFG62iA8fO7JhOh3k2qxZY 2cUP+eiug7qSpj3M8xKYo8r859zNo2GkORY+xWfGF36AA7FI8e6vVUglferv+ByYHQiV jfxj6J8hvtQ/w9+HDIjf7dXHySMl+UQH5QrbMaGTehEMYAkoIDCnyIu1FTjWb9eQv2CF m/vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=F6Bdv7nTejW0X4oYcoZpe18GPl2p/Zqclu64+iodiD8=; b=u4AHp0IwJJ2ixnQpqggXZYoYEZVMuY8Vj1R7ymQ6XLkve4OJnDK3p+lFLkPLDPHmh8 GeBZHCHN9SERVl1ZpbblU0csiN9YNuVfVXUcCJjj1AbLDMAFeopOX4MRcWm7jLjv6Ckz tReAHGduQV0IsYEdVMSx0Ab1UNcuuV1EH3wgap55+5YNjJgHp6MIKKkyDHdwVkxvLtGQ pqmLFBFdGhg5jgGPkQOxt4kY24TE4PNcMtiKiMqsz8MkZU5aJyGsnhEeS/nXf8QWbmw4 Qdm4ZJALBBPg6DiY+hlwafM0D6y6Yn873Pkwvw8HABQYW5IyM7fh+XauRh8s3EW9rpj/ KJhA== X-Gm-Message-State: AFqh2kr01jmg4LoGbfYHxosuCoabdyyZsY2zysbEuFWeQrFZWkKMhjr/ sNO4EJ7hvlWUQLlLqqvdmBc= X-Received: by 2002:a05:600c:5107:b0:3da:272a:bcf3 with SMTP id o7-20020a05600c510700b003da272abcf3mr2150925wms.3.1674071955666; Wed, 18 Jan 2023 11:59:15 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935ca5.dip0.t-ipconnect.de. [87.147.92.165]) by smtp.gmail.com with ESMTPSA id o2-20020a05600c4fc200b003cf894dbc4fsm3023595wmq.25.2023.01.18.11.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 11:59:15 -0800 (PST) Date: Wed, 18 Jan 2023 20:59:13 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 4/9] staging: rtl8192e: Remove unused variable SifsTime Message-ID: <40234d0b1ab1eff23c71d96e8b0f1f0085e2bbac.1674071236.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755391765050088764?= X-GMAIL-MSGID: =?utf-8?q?1755391765050088764?= SifsTime is written and then never evaluated. Remove resulting dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c | 1 - drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index f7865d0c787a..ed27bdbb8fb9 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -581,7 +581,6 @@ void rtl92e_get_tx_power(struct net_device *dev) priv->framesync = rtl92e_readb(dev, rOFDM0_RxDetector3); priv->framesyncC34 = rtl92e_readl(dev, rOFDM0_RxDetector2); - priv->SifsTime = rtl92e_readw(dev, SIFS); } void rtl92e_set_tx_power(struct net_device *dev, u8 channel) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index cbafbecb5ca5..feb48ee35110 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -412,7 +412,6 @@ struct r8192_priv { u8 short_preamble; u8 dot11_current_preamble_mode; u8 slot_time; - u16 SifsTime; bool autoload_fail_flag;