From patchwork Sun Mar 12 07:32:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 68258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp617775wrd; Sat, 11 Mar 2023 23:59:29 -0800 (PST) X-Google-Smtp-Source: AK7set8CuOSWP+E+PvEKUFEkK4sQ7GKa31gi4teQCPfbxTtms86xPq+nfvID64m5Vo5yHttDScvi X-Received: by 2002:a17:902:d549:b0:19c:be09:20d5 with SMTP id z9-20020a170902d54900b0019cbe0920d5mr33173357plf.11.1678607969055; Sat, 11 Mar 2023 23:59:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678607969; cv=none; d=google.com; s=arc-20160816; b=rMNzPbD3WINdmERHvaqiSWfj3JUwSJpj6fv5uvUtg9LDTxxsbh0I56+tdv1QrxKMHC b4Avfm/sP0rZGOancCfR1Uii0RKK1+tjDEr7M+SUJnbwLeVA5NjkO5eunMFfYgiw7aA3 diQ7hQJf1+XK/9Qr/f37yzadxIITiRS41LS4A3S7wga/wNEcO1l2pMxxPzgUMTC6zbPy D77t3d+h6/ZZXBYCM/EajbmcrOJkaoaQ+o53FURRZm4NwFosiyTtTucPa3e9xYVaICdh dMMnXV3cf90ULvBr7s8m0qdOdaI2Esr+D3Q7R0nioIMh+C5Y8jRkbURFHI8BeapqfNlE MTAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tqixGIH6dUSPWHgAy8PJhWrG354k6op6O7lKYsRXNZk=; b=jZAKH6rjTvD5nJggIpUVP/bMjHGVgKiSm9AIndGE52Ej/e4KkkeDOWVRDwrhdUrV7k SeLteKUoUjJHpmYGdmpm7/XDGE4sytNR4JDdzvmLx7WRG1hpQ8pHRsD9jMR2PYVEUxZr nXwrdcxMp+yksiUi8zrutsgBJ7qFTHaF8nrouPH0nahZS28o/aUHTl7eB4EAgTYNTwdi Ksl0PLJtKbusn2XXC7oVQg8wg/R0zgWdD0XPe11inLnH0B032/6ReUOtqsyArYvNUjrD +dGXmYMKlGUJKzz/hMk0PIIYSD+nd088qoTuQHYqCVnAjwilZiabvYZbPPTlsV66i6rI n33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jOA6wgpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a170903231000b0019ea8e6213esi4246592plh.102.2023.03.11.23.59.17; Sat, 11 Mar 2023 23:59:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jOA6wgpb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbjCLHdE (ORCPT + 99 others); Sun, 12 Mar 2023 03:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjCLHc4 (ORCPT ); Sun, 12 Mar 2023 03:32:56 -0400 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 6873F1A2 for ; Sat, 11 Mar 2023 23:32:54 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id y4so7417900edo.2 for ; Sat, 11 Mar 2023 23:32:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678606373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tqixGIH6dUSPWHgAy8PJhWrG354k6op6O7lKYsRXNZk=; b=jOA6wgpbss8RrRhWQyTSJC8ekJaIHjG+xSIiq0tEuSBkRhDhch4EwPyKjxmSVwXFlB kjz/Ly1Wd0auj9C85IBRMBlzuHL/xnnD8mZDgnHb5mphUfN3b/OSwmhp8KZ/nL8JHd3P eGggXDkBdm4Bn+upcNXQ5sglziK6U8V2okfnjXgrMOCvXYeB6Pi6i6kimqAL8AfA+Fpy dpUF4T6aAkP/HdbeAj1/CczvMPvyVZdsvpCAe2cXvPS0BOpDP2LWXwM5MX1BE81x0dqB NFmYi+NvBXKAAbHwIsxeocsFUppHGAcJsmBFmhFij01ABqy9cJeMXMPFPXKXlhjPvg/S MW6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678606373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tqixGIH6dUSPWHgAy8PJhWrG354k6op6O7lKYsRXNZk=; b=mV9AMXIslApJUf8f8SLv5K0KtKwUCxHzjVpbO9icVcdQzT3mal2yfhvETFVLP4Ndns eqVWyZRAwQKxjko4fqvRk1RKlZFbACqLgOuqhFeJf9uAM/H5THZFfmZ/ITELRM5WuOdi WAIJ6J+F+fSdNA7Rdk9pZNaWJEy+gfpDb7stQn/0P0Ted5k/3U5c+tE+km9+vjqBT1xy zJ8TrLAURB/eh1Cas1pfJBxWHQH/BoOpLdApLHJCTQKW7znFgUXObhrDHv+Wz2iZB20f rYsYLvToyg9tA+nIdd6tjFTGF3XT1SgmtYTiuw9ckGL3VkxVqLzRxh8yDmOggMfuVbkS 62ow== X-Gm-Message-State: AO0yUKVKYnhcZ35lQZJdUVr65/zEfMNCPV0QbOAuL/Ktq9WjFgtcqI6T ePmW4cP7lTik8OTn5/cdugY= X-Received: by 2002:a17:907:728e:b0:8b1:807e:d4d2 with SMTP id dt14-20020a170907728e00b008b1807ed4d2mr40826053ejc.34.1678606372830; Sat, 11 Mar 2023 23:32:52 -0800 (PST) Received: from localhost.localdomain (ip5f5abbfa.dynamic.kabel-deutschland.de. [95.90.187.250]) by smtp.gmail.com with ESMTPSA id dc8-20020a170906c7c800b008d1dc5f5692sm1928841ejb.76.2023.03.11.23.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 23:32:52 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 2/2] staging: rtl8192u: dm_shadow_init() is not used Date: Sun, 12 Mar 2023 08:32:47 +0100 Message-Id: <20230312073247.9822-3-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230312073247.9822-1-straube.linux@gmail.com> References: <20230312073247.9822-1-straube.linux@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760148029644509884?= X-GMAIL-MSGID: =?utf-8?q?1760148029644509884?= The function dm_shadow_init() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8192u/r8192U_dm.c | 38 ---------------------------- drivers/staging/rtl8192u/r8192U_dm.h | 1 - 2 files changed, 39 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c index 00fc8fd344db..6a33ca02c3dc 100644 --- a/drivers/staging/rtl8192u/r8192U_dm.c +++ b/drivers/staging/rtl8192u/r8192U_dm.c @@ -2859,44 +2859,6 @@ void dm_check_fsync(struct net_device *dev) } } -/*----------------------------------------------------------------------------- - * Function: dm_shadow_init() - * - * Overview: Store all NIC MAC/BB register content. - * - * Input: NONE - * - * Output: NONE - * - * Return: NONE - * - * Revised History: - * When Who Remark - * 05/29/2008 amy Create Version 0 porting from windows code. - * - *--------------------------------------------------------------------------- - */ -void dm_shadow_init(struct net_device *dev) -{ - u8 page; - u16 offset; - - for (page = 0; page < 5; page++) - for (offset = 0; offset < 256; offset++) { - read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]); - /*DbgPrint("P-%d/O-%02x=%02x\r\n", page, offset, DM_Shadow[page][offset]);*/ - } - - for (page = 8; page < 11; page++) - for (offset = 0; offset < 256; offset++) - read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]); - - for (page = 12; page < 15; page++) - for (offset = 0; offset < 256; offset++) - read_nic_byte(dev, offset + page * 256, &dm_shadow[page][offset]); - -} /* dm_shadow_init */ - /*---------------------------Define function prototype------------------------*/ /*----------------------------------------------------------------------------- * Function: DM_DynamicTxPower() diff --git a/drivers/staging/rtl8192u/r8192U_dm.h b/drivers/staging/rtl8192u/r8192U_dm.h index 2159018b4e38..f4eb18216677 100644 --- a/drivers/staging/rtl8192u/r8192U_dm.h +++ b/drivers/staging/rtl8192u/r8192U_dm.h @@ -168,7 +168,6 @@ void dm_rf_operation_test_callback(unsigned long data); void dm_rf_pathcheck_workitemcallback(struct work_struct *work); void dm_fsync_work_callback(struct work_struct *work); void dm_cck_txpower_adjust(struct net_device *dev, bool binch14); -void dm_shadow_init(struct net_device *dev); void dm_initialize_txpower_tracking(struct net_device *dev); /*--------------------------Exported Function prototype---------------------*/