Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1872786rdb; Sun, 19 Nov 2023 14:16:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4/PdwsZtzhMI6ukKX9rYvGZl49TDxf0KoaWmQzmCgQdlr3uEBkARRrbfMUGza95TfUXRz X-Received: by 2002:a17:90b:1c02:b0:280:c98f:2090 with SMTP id oc2-20020a17090b1c0200b00280c98f2090mr6446909pjb.32.1700432174890; Sun, 19 Nov 2023 14:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700432174; cv=none; d=google.com; s=arc-20160816; b=bLBORhLP/JNbUPRjZv7/o/Nb8euFJOcX9tHpaYEzPhdvplU8sNDfZygRWFwxtiOgFd EKFc/nVXMftrQFubjmIMEh9Z9aCf+fSMmHMVoYEQeLSbpq9mgs3bRpkd3dy7a6bp03wF 3bJKr2v9CUuugm1JRtyi7+DL9jkjkb/zz5h5AEEkz7oOM/VaXwKXVKbabQ7C1W4J3Hs7 VHLzLBYJBIDDmG7RzhV8T/uv2SOiHLCvzRPQQmtAqj25rFf/KO+MiMKKp5Jr6+YYLbsy 1TRigZcef0pl2NrJaBQaRf32Rl+3Sw6RoLeOgRNkUguUsbobBefLamWLCJWMel7qlFul wfXQ== 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=h3E7eDhKdrSTOA+gUQqkBTD8PxWTKFR6HSert4WMZEI=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=IbHg8QG6TBxJq6SQGYZ2Ec/VaLwoBMH05yZObhh0RrGGB7udYnsAE0Cb1vUIA7IAK/ UzpCQxrUz8GuiVByAK982IdjsI57hHsbHeSWTsAoIpfn+9sA7BkIx+hn8zrR6BciqYRZ RObMv9A2V/7tlZ94rGBQ0lb8K9eE36IZ/Sh10uD8wnxkNrL3PpcB5pf831kOPj/vnXUQ zUWbnbuHNbQ5xfhl8ak16zfUBRbjQ0A4xjuJtFp6ol3wSdOL8cw4yEjPMF7SM5Qf3vDh IbM2qXGv3opP4ELUFhL9gM4AWXBiAfyNgex0YHbAzx14Lmy7mk3MH+uayxaUDUxGMrdL ZHzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Atfzavi3; 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 x20-20020a17090a8a9400b002800ab6f85asi9154042pjn.119.2023.11.19.14.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:16:14 -0800 (PST) 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=Atfzavi3; 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 5FA4F8083E7B; Sun, 19 Nov 2023 14:16:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231670AbjKSWPu (ORCPT + 99 others); Sun, 19 Nov 2023 17:15:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbjKSWPj (ORCPT ); Sun, 19 Nov 2023 17:15:39 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6837C186 for ; Sun, 19 Nov 2023 14:15:25 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9c6f0530929so95634966b.1 for ; Sun, 19 Nov 2023 14:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700432123; x=1701036923; 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=h3E7eDhKdrSTOA+gUQqkBTD8PxWTKFR6HSert4WMZEI=; b=Atfzavi3TCIWYBrHuz2mmRiKxPIeVKEG3LeqPF2ruMGhCAmUY0D+CgHn93n6CDHKYO MznJWFfbYayKjciU9rZSPCggX+tgPRMEH/14RH+OW3zDd2LTYEIsWlbPls/HR/RNCW3P G8GTu8Brj/G/i+yy4Rmpws1d4Q8zRSIwKtcyyboQwTiU8nD3T+/gbd1VmRkDQBXokVDQ hN62UpqmWbexTe1zl+vUK0vCGK7ci34TQv3p1S3IrW7jHrWiRZOf8XqjS92mKu5Lxu6J 3Kp4h3tHqgOFJ4iBL8zOZ7JtEGkCLe/eVOiwQDsX7blf54BVPYQhzkje6RFnOPdbYYPj ywJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700432123; x=1701036923; 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=h3E7eDhKdrSTOA+gUQqkBTD8PxWTKFR6HSert4WMZEI=; b=MUIamAp2hFOo3W/F4Oc4WfntZTO7okRTA8roBSNnV6Lp2uQVXFdzQsJZQ7RJUjaaxC 89PRB+Az/UBMotcZkwfE/MuJmW+I1GAd7ec245F6aZtePdjn0t8boqPKwqVrCKpbNoRt vvTNtqulatJyYpc2XaSDhAahTSIwfip79QmsvcZA57KiQE1QLuvDR6+mV2W4bemKqQWu bWZvolsXX1/Yz42/WtM+ct7Mc4jy7LgQdldP702IVj+b7M2IJlYHWsKG+eiNi3uR8mVT BwckKXofTFtg9sRfFnvi5TPrz5AcLKAGdr61TYN5FLlfkaqh05Bcr3mcXeQeHhgF+PdA OA1g== X-Gm-Message-State: AOJu0Yxrt9++nyLEu890ZwnomKRxYtH9QK9ny/7MTSywbP+uvjfQziW3 StzyD/qLyQnuw4l83fv+JdI= X-Received: by 2002:a17:906:10cf:b0:9cb:b737:e469 with SMTP id v15-20020a17090610cf00b009cbb737e469mr3933899ejv.4.1700432123425; Sun, 19 Nov 2023 14:15:23 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id s8-20020a170906354800b0099ddc81903asm3251330eja.221.2023.11.19.14.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:15:23 -0800 (PST) Date: Sun, 19 Nov 2023 23:15:21 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 08/14] staging: rtl8192e: Remove unused variable dot11d_info->state Message-ID: <2f1d4851a7a370c5ef367568c2b098bb9fbf0ce7.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 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]); Sun, 19 Nov 2023 14:16:12 -0800 (PST) Remove unused variable dot11d_info->state. Remove unused enum dot11d_state as well. 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 f0241982c7a8..08cf95d26911 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -18,7 +18,6 @@ void dot11d_init(struct rtllib_device *ieee) { struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee); - dot11d_info->state = DOT11D_STATE_NONE; dot11d_info->country_len = 0; memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1); diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index d3da4af4a16b..c7d35ec86aae 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -16,12 +16,6 @@ struct chnl_txpow_triple { u8 max_tx_power; }; -enum dot11d_state { - DOT11D_STATE_NONE = 0, - DOT11D_STATE_LEARNED, - DOT11D_STATE_DONE, -}; - /** * struct rt_dot11d_info * @country_len: value greater than 0 if * @country_buffer contains valid country information element. @@ -40,8 +34,6 @@ struct rt_dot11d_info { u8 channel_map[MAX_CHANNEL_NUMBER + 1]; u8 max_tx_power_list[MAX_CHANNEL_NUMBER + 1]; - - enum dot11d_state state; }; #define GET_DOT11D_INFO(__ieee_dev) \ -- 2.42.0