From patchwork Sun Nov 19 22:15:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 166897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1858655vqn; Sun, 19 Nov 2023 14:16:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFF/NklyEm3HXkuhMw+Gj3p63B8WCzSmVq3blx+Th67tDSQIfheyUm20IAgjdutCdvVlV8S X-Received: by 2002:a05:6a20:d388:b0:187:db43:d1b1 with SMTP id iq8-20020a056a20d38800b00187db43d1b1mr9326414pzb.24.1700432164383; Sun, 19 Nov 2023 14:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700432164; cv=none; d=google.com; s=arc-20160816; b=B3N/XA26GhtlWX6/m+irB9408beLZSyxNNCPI2VH34oH8s3muPcrvCv1878raiDFih KAhy/S38vYP64eQxUarYl5M35jr4TNAhhVwVH452XDBEhvEc7WV8Z+1B//bUbKto81tb w59W/frPAW8Fd0L8vlR9gOw0ol9RkLVtMtr9NER/JNkKyhcyjdQ/yJPS59Nqk2e1tz4H L6SHdlDrILUdfhlNbjmitAIiGqf0B2Uc/GPS3+edofhJ+lUV3EI4TgR5RJV0u4u66pJy Hx04OyGvcOAgvsIMOUWKv/MqTiONbTGuGr4lxNSrwoyDjC1ZLai78SXLa4nvS8ANCuxu 8WpA== 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 Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d16-20020a056a00199000b006cb8d6e9458si1331397pfl.79.2023.11.19.14.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:16:04 -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 DE5BC80A4A23; Sun, 19 Nov 2023 14:15:59 -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 S231848AbjKSWPu (ORCPT + 28 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-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:15:59 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783032357681236131 X-GMAIL-MSGID: 1783032357681236131 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) \