Message ID | 5e7a0753ed9d6d934203fe29ab8ecef41090f055.1700431464.git.philipp.g.hortmann@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1858797vqn; Sun, 19 Nov 2023 14:16:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfL6lHRdP4TSGPc31hbSGiRZEg8UcHwKAOLPiy4GkPPDdo4VmA3jExFfu4/cism8hVnjEH X-Received: by 2002:a17:90b:1a8a:b0:27d:f711:112e with SMTP id ng10-20020a17090b1a8a00b0027df711112emr7145571pjb.45.1700432194743; Sun, 19 Nov 2023 14:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700432194; cv=none; d=google.com; s=arc-20160816; b=NbJ1i2jmZpOQ5QLD/xO3RtENdoLyBQ2H65YrQ1EpxzQy7+28r8Wucpw5fcjJAO39gu kXZB8+E+1KeDBToDQiGs+NlkhfEtBrSio6gB9xB+93Hm+bIL7t+JPUW9qlxyrmtReIWI Y8LSyIAeHdwDGdijJUSpV6prLpeLiu7w7xlW/KzQoGACXR0zYEP1jDUnjUiaMtYQTysW HlJvhIubcsiKR1jCReSTMO6WxfU9ydfOjgtqKbMUjTWmZ21KhzDmDjWyhnQv3TTOQvjk 2lxjCPSTfElAXj5xpwZBh3fggMUdFP2UFW3Cxt1lobNgN2KE/nS1o5KtRrXgIU62qUvy DZFg== 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=IpbsuDxmEGfBla3FiTj7+jrIsLHV/WRQbjndZVr2cOs=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=N0oJ5KpzYWbNhI9pGUbF53tus1Jff0P6gfdGpqCN5kXuv1eVzGDKFDZaHNErk13cv4 Mou6TQTbd9dd/Grupzswarr3uVE4+q013L9n409S7ZL/meqS69G9G7tBDYjflnSJIXSZ tu4ttvHMbwqR5GE8H9yqCb6JME5YtDaaxS4KF8zal+FlLlWy5fJykL9inDfD7xx5pk0+ lv7LpMeXVX9F4FnyZkc3vLeUFlvidE9u4x5PrYjA78cmVyrz3wt1zi5zhP+gdQspOmet Knl6tCawIyx7nF36VCmIcBGoYbsO45dU36VhlRZ76z+UKiTR0AUm986WRJ4lFujH41NQ peRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mtBqd14l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id cn19-20020a17090af09300b002810355fb4dsi7851669pjb.107.2023.11.19.14.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:16:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mtBqd14l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 B9DE980A58F6; Sun, 19 Nov 2023 14:16:32 -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 S231651AbjKSWQP (ORCPT <rfc822;lhua1029@gmail.com> + 28 others); Sun, 19 Nov 2023 17:16:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231916AbjKSWPw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 19 Nov 2023 17:15:52 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501E910FE for <linux-kernel@vger.kernel.org>; Sun, 19 Nov 2023 14:15:42 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5451faa3aa7so923255a12.0 for <linux-kernel@vger.kernel.org>; Sun, 19 Nov 2023 14:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700432141; x=1701036941; 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=IpbsuDxmEGfBla3FiTj7+jrIsLHV/WRQbjndZVr2cOs=; b=mtBqd14lyi1S0a1Wni/86wchOtY9f5pFLCEw1C+QfxaMGuzlQKHHuZCAlxomSg12+1 JnD9by10yIZVzokPi0kp6dtnyUm3sojNTyHHcv1F7AeUzy5vYmhDzWaMTIgJhW9My+p6 0r6RqapZNh/gDotQBvL+WbQFLbamfrlAV6D0Cw1ViQe03kb79l5E+C7NwcYe/FZMUZ24 SJKue2fr8i6JPdxv8/MWEUxllkPexVYI8UgIcdE2HTvnuSfZxleWka4NqGkdvA8CY58C gZ8kH0oFTMr3tBJhugBiGV+/pouK3BCI149WvLSbdFNpE4DvdKyEUBdMm60tkbRPXs// F4LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700432141; x=1701036941; 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=IpbsuDxmEGfBla3FiTj7+jrIsLHV/WRQbjndZVr2cOs=; b=dLCSUvh4HqUg+nvQq7p3SyuxWhTx+bvPxH35e0x6mfL40C0/6GMq5bb9GIVNOF6REL XRmDuySmxP4LHp9x3U/P79PXD8QooFxpyq4yJlLVkYhTYVeHG3VVWzNBLDxlnXea0pOh nufEwx9sZhqxc8sGkd8DPqY+WwIJyEljjMmXn1HTEq6ffOm7qVjaOPuCvC3+PYQVBlZI lK0nFSvbNTyCxQKNj2CPt9ecictZlf57HKly/nnwUjVrhgmyrph33oGvy2m7Fv6suM6M QGo3GeT4kMEy+J84ScLYEZAkgOs95ASRlhtzYBJDtSXfUweEu1w5rA5CA6K+sUMkZbC6 XWjw== X-Gm-Message-State: AOJu0Yy863ArWi302I08W2VLt2nZP3bxUdlAaFPwGJijK3iNzaUluIyp H2HxCh+Lyt4pR44b9Fd5ZlU= X-Received: by 2002:aa7:ca50:0:b0:544:355:16a6 with SMTP id j16-20020aa7ca50000000b00544035516a6mr4391104edt.3.1700432140736; Sun, 19 Nov 2023 14:15:40 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id f6-20020a056402068600b00548a57d4f7bsm887935edy.36.2023.11.19.14.15.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:15:40 -0800 (PST) Date: Sun, 19 Nov 2023 23:15:39 +0100 From: Philipp Hortmann <philipp.g.hortmann@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 11/14] staging: rtl8192e: Remove unused variable global_domain Message-ID: <5e7a0753ed9d6d934203fe29ab8ecef41090f055.1700431464.git.philipp.g.hortmann@gmail.com> References: <cover.1700431464.git.philipp.g.hortmann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1700431464.git.philipp.g.hortmann@gmail.com> 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: <linux-kernel.vger.kernel.org> 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:32 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783032389196632173 X-GMAIL-MSGID: 1783032389196632173 |
Series |
staging: rtl8192e: IS_DOT11D_ENABLE() returns always false
|
|
Commit Message
Philipp Hortmann
Nov. 19, 2023, 10:15 p.m. UTC
global_domain is initialized to false and then never used.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/dot11d.c | 2 --
drivers/staging/rtl8192e/rtllib.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index b8ba95a65f27..fd488e2fa815 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -26,8 +26,6 @@ void dot11d_channel_map(struct rtllib_device *ieee) { int i; - ieee->global_domain = false; - memset(GET_DOT11D_INFO(ieee)->channel_map, 0, sizeof(GET_DOT11D_INFO(ieee)->channel_map)); for (i = 0; i < channel_array.len; i++) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 1d0878d1f696..820951602fb0 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1322,7 +1322,6 @@ struct rtllib_device { /* map of allowed channels. 0 is dummy */ void *dot11d_info; - bool global_domain; u8 active_channel_map[MAX_CHANNEL_NUMBER+1]; u8 bss_start_channel;