Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1872771rdb; Sun, 19 Nov 2023 14:16:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHd5XLPNOg+n8NGemBCfrTRL2QR+JXUDJ5vXFLcnWJOuPxAsl1SbHDvsWVDvedT/1sr5j5J X-Received: by 2002:a17:90b:314c:b0:280:72b:397d with SMTP id ip12-20020a17090b314c00b00280072b397dmr16130630pjb.20.1700432172262; Sun, 19 Nov 2023 14:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700432172; cv=none; d=google.com; s=arc-20160816; b=aP27ZTNTsR/O2qMrSw/xCIQbIuOBxN8Zmz1rRRjd5EWLz6nMQlgVtm5uxtTpY49Fiv gaSsmFOXksn6OIp58HMNCHw8Cy7vh2wUDKHv8onpKVQFnAk0NBdA3yXk6JdJdaT9WtpF fLZqiRYaWQ7P4+sS6e3MtIR5YfuTQhuB6JIkIfvnUJMuPt/oePHt1As8sXihGIXNQr1d Ls7gh+1LPRotRVn457WQCOoxXb6K7QPcb26x73/bOlEUmwPOEhX4e7SJcwWXostSrVRV nRSmbmyF8ACC/kfyt0G488H+cS/eN4jMeTwbUTcn7FPVBlQeBQ/xOVn64DXjJ2ZOpW7n db1w== 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=ael1tKdfqfresRYbM3miMc6lCiPRw9WqecWTMStesZY=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=r2g3D5DwB+0rQ+G5IO7MyvtdsLmWscfr4ZhDeEEdyDtWexvVm3H2ercl+SScy3IINL ogCIx8pf98jixyANvtJTYiNU9SnyDMpRKZQFgXggJiO3ArNKRdwIbTQcpqtNYVd5FOEd 4c7g+HOJyEQ8qgUUUt0t5U2t8HOj4nebkRzmfvPMlZD/JXUGiE24VT6TwqReYwT9nmnm 1+X4mQulJx1w3BuT7pbH4wTda+Ed9fv3PWviA7qUoxGoJiGGG5E9X9QrCz3FbbCGQ5+B EafFNSh0NCHumf/kUMgGp3Ef/UGWBqfM+GbfKYxFSxzcjQ4HBlrGPk1OajDawNGT36aD kNWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C0sx2Ylg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f4-20020a17090ab94400b00285105c440esi3567929pjw.120.2023.11.19.14.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:16:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C0sx2Ylg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 94913805742B; Sun, 19 Nov 2023 14:16:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbjKSWQC (ORCPT + 99 others); Sun, 19 Nov 2023 17:16:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231908AbjKSWPr (ORCPT ); Sun, 19 Nov 2023 17:15:47 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 004F7170D for ; Sun, 19 Nov 2023 14:15:35 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9e3eaf098f1so110137966b.0 for ; Sun, 19 Nov 2023 14:15:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700432134; x=1701036934; 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=ael1tKdfqfresRYbM3miMc6lCiPRw9WqecWTMStesZY=; b=C0sx2Ylg8Lp4ubEcRvI5uto6Dy+RAvdZAlqXF4HAKmq2djYu4iy2/ndfakNxkzUIsD vh/9uJOG2EtN2DtGYEKncdww1Z4ftt4PwbI0RxGR3Bv6HX3JkfWoiWngkTw33Wo20NXa ksDsctoO+/7efj88kVDeOoUVql3sB4Y5JGvSYlfUFdqthNbVb/Bq1p8Nml8Kb4sFi7NH r5T4BE2Phgqsyfw2Cg64+CBLyeNfdl4/ZkqwEzjS2JudUU/D+F+GbOZk0LgVigiBX+Dh qrLe0O0JBBcCC+Q/CbldCiFi7u49arbvv4SgUNRI1X+XPR8l5ByGw18ROG5mg78AZ9SE NwxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700432134; x=1701036934; 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=ael1tKdfqfresRYbM3miMc6lCiPRw9WqecWTMStesZY=; b=b1SYC45vNAbI1n/mpER/MIFaUr9cxCFlW6cCALnP/MJ2coUlI3ca6ojRUzT7GMVfHC 2zuWErqhUePYQxZZ7Jp3WC02UK+6wHPwOaOIufsVoYHZArE1HFna39wCj9/C3qGkgexy g+SCV7l3izwyJs2+wdhDtWMgd3t782N1n+RG37nzbC1mqV6dZbmX1so+8k2Sr1jkyyo8 ezDC4oVbfy7yaMWs7U/geJPIgL1npUIZ8tkkXXwmwBh7xq/UrcAzpngUDek/A4IfymdE MtHU0L3zPGHvMnjuDZ45Eb5wlnmpKbXnfVJHMyMVAZaZWaTg5ocHeYSrtBVtEz6s903O KxgQ== X-Gm-Message-State: AOJu0YyIxsg1Q/WaTBwKZ86fNHCW6YJDuPh4WWSoTIUH16sDrp5l3HKI TIJK/r4gWNyVzP5fb6tN8ls= X-Received: by 2002:a17:906:7486:b0:9c4:4b20:44a5 with SMTP id e6-20020a170906748600b009c44b2044a5mr3318304ejl.4.1700432134223; Sun, 19 Nov 2023 14:15:34 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id sd22-20020a170906ce3600b009fbf15cee7fsm1434263ejb.69.2023.11.19.14.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:15:34 -0800 (PST) Date: Sun, 19 Nov 2023 23:15:32 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 10/14] staging: rtl8192e: Remove unused variable country_watchdog Message-ID: <958f2ebbedb51e71e11479f734b4df27484160e1.1700431464.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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Sun, 19 Nov 2023 14:16:09 -0800 (PST) country_watchdog is initialized to 0 and then never changed. Remove related macros and functions. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/dot11d.c | 1 - drivers/staging/rtl8192e/dot11d.h | 8 -------- 2 files changed, 9 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index b524ebe31869..b8ba95a65f27 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -19,7 +19,6 @@ void dot11d_init(struct rtllib_device *ieee) struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee); memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); - RESET_CIE_WATCHDOG(ieee); } EXPORT_SYMBOL(dot11d_init); diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 64fd39cddc22..82748b12bd82 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -25,20 +25,12 @@ struct chnl_txpow_triple { */ struct rt_dot11d_info { - u8 country_watchdog; u8 channel_map[MAX_CHANNEL_NUMBER + 1]; }; #define GET_DOT11D_INFO(__ieee_dev) \ ((struct rt_dot11d_info *)((__ieee_dev)->dot11d_info)) -#define GET_CIE_WATCHDOG(__ieee_dev) \ - (GET_DOT11D_INFO(__ieee_dev)->country_watchdog) -static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__ieee_dev) -{ - GET_CIE_WATCHDOG(__ieee_dev) = 0; -} - void dot11d_init(struct rtllib_device *dev); void dot11d_channel_map(struct rtllib_device *ieee); -- 2.42.0