From patchwork Sun Nov 19 22:15:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 166893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1858528vqn; Sun, 19 Nov 2023 14:15:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFg9KCEFDnYbmpdxZfvzS8TeRXFwHh5+9UpQlULrRfnnHMpYd7AblysqMevCkYF4R6h3Czk X-Received: by 2002:a05:6a20:1592:b0:187:fb57:9181 with SMTP id h18-20020a056a20159200b00187fb579181mr8784801pzj.15.1700432144841; Sun, 19 Nov 2023 14:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700432144; cv=none; d=google.com; s=arc-20160816; b=Y72UBFTFDbeaova71InhN0lA8+zm36XUIqsonAkybIX1Q6XCUfuvnC08/lXLe/UBMa jNKFSBjJJbxrBmyUwQQqSw834VaITedoNJWLz+UH8mPVfUnUEPAqbzkL4T7RmIchTesH YYP0hcS7nivbLN+TkaXC4+XkmhdRbQgv0lA5qrZIjRSc3RFDX4wR3wnJsi+JksDBMxpa zJNjrblnqj2KZVdMhiW83sJ+R46i7w8xyrZEu2DUAAYlth/WhNJt2Szl2FTK54TbVKzB rlrkaLE30uFRSP+tHCy5r0VWZlGvX7wADYmU3+hwLXWHy5ZaibDrLBZr4Og12u4l6PrY wo1A== 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=JW5pjvIHBsT19T4YqQCt3aUKtIVdNobRc7IkJBk4VJ0=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=R5oWqomsY+SYPkG6k6NZrOJEmnclY+g45dnMyS/okTBik9rkgM79Ise5eDSVrevGi1 7EXxQ8NcpPrn46Qv9+b9BsbK+g+5dpPrmLTvMwbygbnHUYp1/NQ4JTtasEzgaUhcZDE2 8YsH4LG0CBETeXe3bRFSVdZhtWN17GyP8zpTv8OTGIUkX3DgfRWMggm5/5PokGq0Z6MP 4hBkflgnVf5nUSqMYL22ZrAtBRxflro5eRZsfiXsf5bsEoKexX22riXMSvxRhb/s//y1 /cXeocx8qlfixnUILqjSUykco9x1f4V2PzkCq8e1vHCZetYc49Gl/F078vfRSVm0PNJr 4IiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=azFRa3mm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c9-20020a631c49000000b005acba4c9bf4si6810579pgm.2.2023.11.19.14.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:15:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=azFRa3mm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 80C6F805741A; Sun, 19 Nov 2023 14:15:41 -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 S231725AbjKSWPU (ORCPT + 28 others); Sun, 19 Nov 2023 17:15:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231759AbjKSWPO (ORCPT ); Sun, 19 Nov 2023 17:15:14 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF59D49 for ; Sun, 19 Nov 2023 14:15:05 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40a279663a2so10130275e9.1 for ; Sun, 19 Nov 2023 14:15:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700432104; x=1701036904; 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=JW5pjvIHBsT19T4YqQCt3aUKtIVdNobRc7IkJBk4VJ0=; b=azFRa3mmxXA8DNc0C6ssY5wTI85M2xjoMbYmh6IPPISAo+y6flfwwksi+PTn2W7M1G sd3Oe11QRTC/16MK+rZGqZw9thrYPQN8bq1BRgJ2d041jjlEeXWFgM2O3dhzPOV9VdtY VKg79oB4Uryo7zDIL0wHl/3XBHAO1r2WwvFa+9NLr2svN+g6NgRVdasUaN0jNsLjoXXq nu5ZM4rTdD+Jz5rMgrUPQLHcPN8LjOuJSXziOSBAQOtXzVRHmPYMSi5iAEXuZHJoSNUg hRY/0GQ9PAMJmTNKmo1uC51o4RDaZj3SQklRwdT3wJDY5CvX9yDt50M862Bn/ZrpRM7n FYEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700432104; x=1701036904; 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=JW5pjvIHBsT19T4YqQCt3aUKtIVdNobRc7IkJBk4VJ0=; b=d6NfNn0CU+ZmtLq6KvyJo5FbL5GRGk/l/HOlfA+7VEOrvDImqJwtxu6vpYaohZIm4w ZkShHdVNYHSKzy860bjS3Jzs3w9AIfMkzyZfZlfjGEbiGwfufF0owlFODZaVa51L8qmc z/rJ6l/4COss4FwjKPODA7NS+F7MXkOMxkjTRHIpYtg9gtiU2t8hvQPHHjLxuFE/FQS9 IHLFY6h9NuHygCqbjLcEMf0TW61QZ83AC0PmdUmosjbvGe9rY9jpxY11uVcTNbdETBsI XTupwmJubaZaJHRgIuS4wgecABt84YA4C4BkSwwpFYGAa/djgJA3wz5WGP/B+is26A0y sudw== X-Gm-Message-State: AOJu0YxATr1MHKCOxQvwNXcA7CWF2a5oI+UvZBcqQ+K+SU2h5G6i7QjI 22XWBf2vR/qo5bd9g1OuLcQ= X-Received: by 2002:a5d:6510:0:b0:332:c6ae:ea10 with SMTP id x16-20020a5d6510000000b00332c6aeea10mr1035615wru.1.1700432103762; Sun, 19 Nov 2023 14:15:03 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id x11-20020adff0cb000000b0032d886039easm9100269wro.14.2023.11.19.14.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:15:03 -0800 (PST) Date: Sun, 19 Nov 2023 23:15:02 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 05/14] staging: rtl8192e: Remove unused function dot11d_reset() Message-ID: <09306a7f674e0cf1244c47ef8ddfc5ae147124f8.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 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:15:41 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783032336606351611 X-GMAIL-MSGID: 1783032336606351611 Remove unused function dot11d_reset(). Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/dot11d.c | 17 ----------------- drivers/staging/rtl8192e/dot11d.h | 1 - 2 files changed, 18 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index 95fb56cb77fc..f0241982c7a8 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -42,20 +42,3 @@ void dot11d_channel_map(struct rtllib_device *ieee) ieee->bss_start_channel = 10; } EXPORT_SYMBOL(dot11d_channel_map); - -void dot11d_reset(struct rtllib_device *ieee) -{ - struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee); - u32 i; - - memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); - memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1); - for (i = 1; i <= 11; i++) - (dot11d_info->channel_map)[i] = 1; - for (i = 12; i <= 14; i++) - (dot11d_info->channel_map)[i] = 2; - dot11d_info->state = DOT11D_STATE_NONE; - dot11d_info->country_len = 0; - RESET_CIE_WATCHDOG(ieee); -} - diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 9e8328af887c..0ca803be3965 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -72,6 +72,5 @@ static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__ieee_dev) void dot11d_init(struct rtllib_device *dev); void dot11d_channel_map(struct rtllib_device *ieee); -void dot11d_reset(struct rtllib_device *dev); #endif