From patchwork Fri Oct 6 19:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 149384 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp537853vqo; Fri, 6 Oct 2023 12:05:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsPVA/SgD6zNotyQEJXqU3kElKWZEocRGVHlwk09hQAnXlFVFDqpC9FnT47Gl0btzzuwAY X-Received: by 2002:a05:6a00:1781:b0:690:2e46:aca3 with SMTP id s1-20020a056a00178100b006902e46aca3mr11114288pfg.25.1696619145792; Fri, 06 Oct 2023 12:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696619145; cv=none; d=google.com; s=arc-20160816; b=dik7XtaEoRu4s9ZF7BJW6HEgS13pYRufa1JPEbGsMv7wayMWw53Umxd1ivCLZaoAxV Nj6MhtfLFyUywHJiEnHWJOMloSQLZ4eozhuO8SmOhkzpXyWk1pE5y07nn716iaR2EnQu NatQdlBVwqGYOzhamvszyPQ8HmloD1FepgjZl+li1/f18Ex1PQZevoqphusbyaL16bZK V1s5wzb7UpCoxNDzI0CTP7x/6h0X9TuPgfAg1jYblNy+mXQxfz48+10ZzgMCVZ3AgV51 DKAtYb8ARxYZK1bQsJj9a8yh1+EUdc8FjPAoWXpt7VPrvXKpfq8q8xj26Ro2N93ijnL2 1u9g== 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=frWFn5a7WskkCNBBns5qHFEWZyzl6mTq0HND4RnFXso=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=UCZVz6LJMUN5njd50x1VAaRK4xruytGafLcDp5A57mVwWR2DOUDvzPImENFPSMISG0 Jm444hbHlTvxR6jcTe11b4pJoc/QJOl/G8I/hTSeytL4iRMbR38xsitjDMnr4gsuusKG bxW5i83CEtHa7b0BqMkxv8mSPjlK3BkMVcI8un2rIGMj1Jxq/EaADBmua6K4mYUZdcwF lp/CSp7F9sbnJrwxTPBN+IKQHTeO3S9b/u1t7HT2nWjtjbx6SYyRCq+NGpM1BLsv9Wos V73FFr/xfZjUBRmm2gMZQ+Veb3Fn10BuGjYck6pJpsL27QtAO+yYHEMafPMoOhvKnukZ gqqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mwVDpUvx; 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 cr12-20020a056a000f0c00b00690f0a78ecesi1968525pfb.315.2023.10.06.12.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 12:05:45 -0700 (PDT) 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=mwVDpUvx; 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 2A053802645C; Fri, 6 Oct 2023 12:05:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233352AbjJFTFV (ORCPT + 18 others); Fri, 6 Oct 2023 15:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbjJFTFO (ORCPT ); Fri, 6 Oct 2023 15:05:14 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F099DF for ; Fri, 6 Oct 2023 12:05:11 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9ae65c0e46fso98998366b.0 for ; Fri, 06 Oct 2023 12:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696619109; x=1697223909; 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=frWFn5a7WskkCNBBns5qHFEWZyzl6mTq0HND4RnFXso=; b=mwVDpUvxDlAVx81FARIDNZ6YeAJXsET5mQygZV42hsVULI+tnRewgM8ndkhttzhhuR APSErj734lGk8yzUY3mVqSjI41/C/mk6ca5LQIgNUvVm2gVRgmJgDPp6DrRBMjcTtmpz w0e8+mxbsuOHqVF4r0UqHB9DiTKpjIIElzHj/0XKOBFQ9Mpnw0k6kS1tHxDRey4L/92X kyFueZ7F0iARtPj6+R2aQj41HTJVdqV5nZMLuJJAFAgcWLETKDRKxjwwKWYl0fC7diVk qhNfWCQQ3yKd5Yq77aQXjlDrZjY9DVQHBJgoSuN3iUALoavoQfTo8ftQX3uod/uRNmBV WWWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696619109; x=1697223909; 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=frWFn5a7WskkCNBBns5qHFEWZyzl6mTq0HND4RnFXso=; b=cpU6u6L5yjeeqYvqoEgUIDnir3+DLqm78S7REP6v/vVHqozFxz2QV7zY0Ze8E5opkR llsvXDp5FUwVN9dHxC2XqI44ulZ7P/oyvPRkX1aKIoo1bGqiDDobyRfo8NjI1/OkwEkf /dQnXvfrKTZqCMwOUFVwokrItcvMNsoPH09xnKPOKHFdXZlTyh0lMPEzDxPBmOWOcFGG I+lgO71dE7x7yr7Ighl6Y/JgTWozqgE4kmqr0r8aNFE1z+Y3hM8IGtRyDM4D1bkopzR4 wsqJmUlx4z21zFjLTfm4UDP5jMM8KTuiuaYqsyPFwPmMAtWtuOkjGBHVzweu2zE8LseL QlVA== X-Gm-Message-State: AOJu0Yy+hdtIA2z8FcKd0nf+pcWf5q5itI2p67IR9s111QSRz5JEGkg0 XmlvN2HKY35bdJ+bqkPwFJY= X-Received: by 2002:a17:906:2255:b0:9a1:be9b:c935 with SMTP id 21-20020a170906225500b009a1be9bc935mr7672676ejr.0.1696619109546; Fri, 06 Oct 2023 12:05:09 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id lf8-20020a170906ae4800b00992e14af9c3sm3326901ejb.143.2023.10.06.12.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 12:05:09 -0700 (PDT) Date: Fri, 6 Oct 2023 21:05:07 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 05/10] staging: rtl8192e: Remove constant variable ps_force Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Fri, 06 Oct 2023 12:05:29 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779034117852402685 X-GMAIL-MSGID: 1779034117852402685 Remove constant variable ps_force as its value is always 0. The equation results accordingly. Remove dead code. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 1 - drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h index 4b2ee1684dac..d4e998cfbefc 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h @@ -263,7 +263,6 @@ struct r8192_priv { short promisc; short chan; - bool ps_force; u32 irq_mask[2]; diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c index a4da11627199..44a9fe831849 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_ps.c @@ -181,8 +181,7 @@ static bool _rtl92e_ps_set_mode(struct net_device *dev, u8 rtPsMode) { struct r8192_priv *priv = rtllib_priv(dev); - if (!priv->ps_force) - priv->rtllib->ps = rtPsMode; + priv->rtllib->ps = rtPsMode; if (priv->rtllib->sta_sleep != LPS_IS_WAKE && rtPsMode == RTLLIB_PS_DISABLED) { unsigned long flags; From patchwork Fri Oct 6 19:05:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 149385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp537873vqo; Fri, 6 Oct 2023 12:05:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEVpS8ORsIuiA4cM5+q2SNOqS5SMWxDSenC6uCj3jD64DMrJA1xhDfmVxhIQUUHRnrzMM0u X-Received: by 2002:a17:902:ce8e:b0:1c7:49dd:2ff with SMTP id f14-20020a170902ce8e00b001c749dd02ffmr8976056plg.27.1696619146504; Fri, 06 Oct 2023 12:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696619146; cv=none; d=google.com; s=arc-20160816; b=QtFyOPUqNFCsuSga7B2QEAZERg7ay+v2Hg/JvohzU3jSQ0b7VYhK9gJaWpTshbE6+2 E5MF+EGQnzWvG5WvFKKKu4H0LW60y2bzH1Nx1Wu8mbqTpur8PVG9I1EOJBVhRddyNWb7 qD5uQT3ooHqOUtDGr0fjdDsb06/BRJArCE3xUIsuZvB4G30j2LklOCUBnb8WZZyw3Sgd oeLVffZ2ewfUbwexSNnxfaCmiG/Gat55E3E9KXVrFvV7phjLOWopYXaSfNAsoMwCWYIj /vmdb02Q0Nd53dD/RoeWFKm9v0KweaRPrj+Y2Zp06mGgJBu3GPBl3rxlsF8ybtcdduDa LGZA== 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=L+5/W8zfr89+jzPHersBFwpSIge2gJvw1XUex3kLRTw=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=HTc1+W1da4xAkUtCvh8GYZJaabtvCo7jNzFy2V/If9X+uIBxBGvSh+a66fQdGGQotv ETqz6JmpjAT11yCsGE4vsMVTGJrbqobwBDi8zcB65uA/SCi4L2TD4p75s1AzH5bV6Jyu wPNX4dqVqUpfaRpSN5sikHnOh4/kPc49roo3cWOemcVoZuAzQYFCswYiGJx4ajoI9zQ6 EihomIF73MvNnwENWjF9P0dLbXnfzPOb8FnyJzBmkHEQLn2hIeqOlQrczukqlEOdKJm9 oT4MJS5i4nWxkIiibZrtvCtgzctbuq0QnnLPttVfOI6hhr/pMMhZRmfbAtcQvvs3BtYc Qu3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RxffgPUq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kq12-20020a170903284c00b001c3aed2db5dsi4102858plb.409.2023.10.06.12.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 12:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RxffgPUq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id B3CBC8265B52; Fri, 6 Oct 2023 12:05:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233392AbjJFTFb (ORCPT + 18 others); Fri, 6 Oct 2023 15:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233376AbjJFTFU (ORCPT ); Fri, 6 Oct 2023 15:05:20 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60160ED for ; Fri, 6 Oct 2023 12:05:18 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5221bd8f62eso777124a12.1 for ; Fri, 06 Oct 2023 12:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696619117; x=1697223917; 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=L+5/W8zfr89+jzPHersBFwpSIge2gJvw1XUex3kLRTw=; b=RxffgPUq5lYECZajZM5GZzWgLAQiD9CInxzvBr7WLR84wSgJu3VRkIHFnOpG8am7Z0 lLeMwifdSsEXnssAYjsG+jK87MtzNNXfqV2jQMh9ViSneh1CSoHs914xSCS5CEVKhlAq GwuRKMLksIlKNZG6SlYGH/V8KKSvQLotzME6Py+o2xVngWaGiTN7m/Rs5QzmnwIe9SDC IYlzX8FXzxOaCJb1pACHTYTVbVbpOjmlBguRhT64/7d+smteRdfQ7nvtnsvjq1sQ4r6u JditJADJ8Y5lFntpJs+wrGzpZ0mDEkQIhiuGda1X5JYt/JD0YUJukWKLZ+DMHK0b358L XhrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696619117; x=1697223917; 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=L+5/W8zfr89+jzPHersBFwpSIge2gJvw1XUex3kLRTw=; b=PKsHT40cUJAXdkTSUJjEjq98evCT5NcqEpc8C5rLb+56Dm/Q/X0DB3oYjCGeiRZGMo qLf1OHNpChRxMJpBK7tpcrJSkD0LTGZd4X3jZtC72eO6BwCJenyy7khnhr2WYvmxtFDY Z2RvFt5FkeDs5i/dPIA1xKu5sRhTq3lXhDetPtgWj9Nz/CdeaOepUiXbihwu2bT4XLkm BcTdCcRj6bmseCIUGkLFt2NJrmzdu29UOlIdcdGSPiX8oMvBYmKfupVmyzJzqLRBeRBN ktCde2N4w8FAGBAosiKL/H+ZfRsdgDbIpNb6tutLMxD4U2Ne2PCRFj6gmKVq51RfUKX6 Lleg== X-Gm-Message-State: AOJu0YxocEBAXJCFQFQzb9ZyuzXrJVTR8GA0zllSxjOqOidAejypQ8pO ouEU9ychEh0BBAkP//Xr7sg= X-Received: by 2002:a05:6402:524a:b0:530:8a69:c6da with SMTP id t10-20020a056402524a00b005308a69c6damr7326575edd.4.1696619116810; Fri, 06 Oct 2023 12:05:16 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id r19-20020a056402035300b00522828d438csm2993147edw.7.2023.10.06.12.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 12:05:16 -0700 (PDT) Date: Fri, 6 Oct 2023 21:05:14 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 06/10] staging: rtl8192e: Remove function _rtl92e_wx_set_scan_type() Message-ID: <8a0ce95447dbd736e3aeec5f7aa0e997f916b7d8.1696548527.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 12:05:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779034118227256881 X-GMAIL-MSGID: 1779034118227256881 Remove function _rtl92e_wx_set_scan_type() as this functionality is not commonly used and the tool to access it is deprecated. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c index 27309df925ba..d4d8d66df82c 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c @@ -627,22 +627,6 @@ static int _rtl92e_wx_set_enc(struct net_device *dev, return ret; } -static int _rtl92e_wx_set_scan_type(struct net_device *dev, - struct iw_request_info *aa, - union iwreq_data *wrqu, char *p) -{ - struct r8192_priv *priv = rtllib_priv(dev); - int *parms = (int *)p; - int mode = parms[0]; - - if (priv->hw_radio_off) - return 0; - - priv->rtllib->active_scan = mode; - - return 1; -} - #define R8192_MAX_RETRY 255 static int _rtl92e_wx_set_retry(struct net_device *dev, struct iw_request_info *info, @@ -896,16 +880,12 @@ static const struct iw_priv_args r8192_private_args[] = { { SIOCIWFIRSTPRIV + 0x0, IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "set_debugflag" - }, { - SIOCIWFIRSTPRIV + 0x1, - IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "activescan" } }; static iw_handler r8192_private_handler[] = { (iw_handler)_rtl92e_wx_set_debug, /*SIOCIWSECONDPRIV*/ - (iw_handler)_rtl92e_wx_set_scan_type, }; static struct iw_statistics *_rtl92e_get_wireless_stats(struct net_device *dev) From patchwork Fri Oct 6 19:05:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 149386 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp539212vqo; Fri, 6 Oct 2023 12:08:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE96jQ3Tj8tEoEwSl4CfqD0jXd6y9WjMtt5ryrdcwiFkUbEkanVr4dAs6sJN7AxrqNuBxA7 X-Received: by 2002:a17:902:a604:b0:1c7:37e2:13fb with SMTP id u4-20020a170902a60400b001c737e213fbmr8263570plq.55.1696619280486; Fri, 06 Oct 2023 12:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696619280; cv=none; d=google.com; s=arc-20160816; b=iECuwN4TOQmZ+4ON5EKZWsAHgwvShL8TOKXAmDu9unPag9I3qm3IOpUmAyiIt9532v EJvlozfKPsb/9RrOO8NK7DJO6ZPmtyVeXZhdFjhDXnbcvA8C0Ce9ZWxihbnq3wblX6e6 v91NQ/aaF2JnkZVhdaS4P5QQNY4qb8GH57FWGA/N7wG8A5iu5Nd6Y1LcuVa6bBJp/pop rRudS4xEBlQ2u1xXydWoFshF0HGDcRaT2UWzU81HRwT4tOiglqXTf8Jsr53fTMlz+68m Tmxrqgpu9z3Qywl18MYWnlRjOVKhByYwnIfzwiLzTytbgeA8fQLNVSah5jjL9T1o4Xnq riwA== 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=50wAwYPZKotuW/XLuJMHGzTqySgRqtpp7TbieAYYB4c=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=F1s57sE+QsR5ib2ZYyfE/su7LgwPbVGRWXHIUCyO+TO2VFqTfh5BjKJ9rSF0emyWEw z8u5xkK23tHdFPRkEJEMSeGl4tV+9Rz776eRmkZWOpPecmsZ1mmGHGfJFbcmriD1nF6v wU69JdHRPqACYrEQvSrKbAnimEG1AGTGamshfpO8x2nQCQTZxUIDMriR42m86m4fBGbl 1htI0o5DrsudV1UQQ2ehAz66dkfptgI9dGYQ2XpebutCFzYTKx4UHo8LVoGDJJuu4+JU ZehQ50ayHqbq1VAH4pHPgjesN75sFdobrLpmoE0i1tuowUsRmAlK/WZKgyanQBs4AxUc sObg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KkBCH9Hr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t17-20020a170902e85100b001c60636e426si4593570plg.432.2023.10.06.12.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 12:08:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KkBCH9Hr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 696F78061B6C; Fri, 6 Oct 2023 12:06:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233421AbjJFTGO (ORCPT + 18 others); Fri, 6 Oct 2023 15:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233448AbjJFTFu (ORCPT ); Fri, 6 Oct 2023 15:05:50 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB1AA132 for ; Fri, 6 Oct 2023 12:05:42 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9b2c5664cb4so91676466b.1 for ; Fri, 06 Oct 2023 12:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696619141; x=1697223941; 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=50wAwYPZKotuW/XLuJMHGzTqySgRqtpp7TbieAYYB4c=; b=KkBCH9Hr4KDn48nh3htXhNoFZNypg3dLvbOaSdOazqdwhJEArF8GzVtnCji/bwRPiD ruWosttdzmeeQn+gM2Uz6OOrFCJ0TfBUFlq/MZE8MVtfwJlw1R9bAwO3x8bpczNDqSIF OZy19B9UWL6873vTwcosXnWCsarLipDHaBPZtrnIlwV0Q6StUsZuWsAf07KfcOXjpp5r 080fXMEVWOQ8Vc+j3HTf5Ev68ox5X/Ubf6uZPmiyRHQ01iTrtd739Wx+kEPUp2Bxhnk3 /x+bYyhjxJ8L85gC6DCH7pJ5YXZQVH5AWgBoiWAtLNkfrP0W2CVEr9y4hzuKigU14jRJ dBBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696619141; x=1697223941; 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=50wAwYPZKotuW/XLuJMHGzTqySgRqtpp7TbieAYYB4c=; b=hGnueNyfv+OmNZFm89JJqcH80crhAR0pycMEmZ0afb+QCJ1VC/+o6il4v3/5mnv57j B9XlABR1q3mFjLlkYe1qPNR3DfheYzp6K1tVKi5gAAtioEA6pesQah58IIdpptk8dBzS lLWfOtwiew2JbD2XJs5AZ5ERhcCAXzf0j4Ydvv+PqEzVKdnw8JgQ4VtDxAJ+jUintlTz MB+pOIuVkhOAehV8RHsJfB6RpIomLqkn4WtaW+MvBNiUvPnHpJUi59BziM4xGDveMazb /c1b2rCEiVmDVdcqGHJVYc5lqiISWxCkSxhxvOGubv9DAaoWLjhRM0BAAW3XWk2zpZQ1 WFkA== X-Gm-Message-State: AOJu0Yz8gxRQbE31R8VHDbCE73YYismFp9Xy24vFdr5pTbGBjdfH8tdk SzstLoybV0sGWxgwSWgI7WQ= X-Received: by 2002:a17:906:24e:b0:9a5:9f3c:961f with SMTP id 14-20020a170906024e00b009a59f3c961fmr7849157ejl.3.1696619140986; Fri, 06 Oct 2023 12:05:40 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id cd16-20020a170906b35000b00991faf3810esm3345530ejb.146.2023.10.06.12.05.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 12:05:40 -0700 (PDT) Date: Fri, 6 Oct 2023 21:05:39 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] staging: rtl8192e: Remove unused file rtllib_debug.h Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 12:06:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779034258999360480 X-GMAIL-MSGID: 1779034258999360480 Remove #define DRV_NAME "rtllib_92e" as it is already set. Remove enum RTL_DEBUG as it is unused. Remove #include as it is unused. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtllib.h | 1 - drivers/staging/rtl8192e/rtllib_debug.h | 47 ------------------------- 2 files changed, 48 deletions(-) delete mode 100644 drivers/staging/rtl8192e/rtllib_debug.h diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 2f968c3c0229..b12a39ecdd9d 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -31,7 +31,6 @@ #include #include -#include "rtllib_debug.h" #include "rtl819x_HT.h" #include "rtl819x_BA.h" #include "rtl819x_TS.h" diff --git a/drivers/staging/rtl8192e/rtllib_debug.h b/drivers/staging/rtl8192e/rtllib_debug.h deleted file mode 100644 index 06adfebd7c89..000000000000 --- a/drivers/staging/rtl8192e/rtllib_debug.h +++ /dev/null @@ -1,47 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved. - * - * Contact Information: wlanfae - */ -#ifndef _RTL_DEBUG_H -#define _RTL_DEBUG_H - -#include - -/* Allow files to override DRV_NAME */ -#ifndef DRV_NAME -#define DRV_NAME "rtllib_92e" -#endif - -/* These are the defines for rt_global_debug_component */ -enum RTL_DEBUG { - COMP_TRACE = BIT(0), - COMP_DBG = BIT(1), - COMP_INIT = BIT(2), - COMP_RECV = BIT(3), - COMP_POWER = BIT(6), - COMP_SWBW = BIT(8), - COMP_SEC = BIT(9), - COMP_LPS = BIT(10), - COMP_QOS = BIT(11), - COMP_RATE = BIT(12), - COMP_RXDESC = BIT(13), - COMP_PHY = BIT(14), - COMP_DIG = BIT(15), - COMP_TXAGC = BIT(16), - COMP_HALDM = BIT(17), - COMP_POWER_TRACKING = BIT(18), - COMP_CH = BIT(19), - COMP_RF = BIT(20), - COMP_FIRMWARE = BIT(21), - COMP_RESET = BIT(23), - COMP_CMDPKT = BIT(24), - COMP_SCAN = BIT(25), - COMP_PS = BIT(26), - COMP_DOWN = BIT(27), - COMP_INTR = BIT(28), - COMP_ERR = BIT(31) -}; - -#endif