From patchwork Fri Mar 10 08:34:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 67281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp758538wrd; Fri, 10 Mar 2023 00:55:30 -0800 (PST) X-Google-Smtp-Source: AK7set+m0cjkHzzLQjWusXeVSL8rhB4RvBImDbyyLMpHlDPKf+RoYbk6eA7z1KkNaSFcPvgP5quR X-Received: by 2002:a17:90a:359:b0:237:24a8:c5e2 with SMTP id 25-20020a17090a035900b0023724a8c5e2mr25506324pjf.40.1678438530156; Fri, 10 Mar 2023 00:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678438530; cv=none; d=google.com; s=arc-20160816; b=jk2fpVHS0qaGu4BTH4yBX/OdFAO5CLFPJuFyKckdTD90zZhujiPaWb1oj2fhmhm0t4 mXzpcs0djkf1IvNA1gVW/oErulNW9f8QiM/a2Gz96Yfmk0vftnYV304QOxgWPH9kK7nV AYpGS9n3Jm/3aI1+30Sg0mFoNTVkA+EQfs0lxpqijQiZlLMv4hHWvPuL2q+iVFqaLPRm SfpRNezOVoHxHibUlx4ndNkKbBSFCIZqiatOMD1virjHSiO7fKIg8QX0HYW08WvAm9nr g6S1abyzlyab6GQBjKmn/oLvq21SDubnDqPAlIdYhQFx7X4Ak+oTF0Ea7zbdUBgkE2QM i9BQ== 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=qq0v9YVI3wtTDDjRzU92twoQtmr2PxAaTyrW0UMmWQw=; b=H4NAXOGl78s4Iw0ef53IqsUg6cTecSVs6wPG04+5FnpjsewH/Nzcp7kEeqQP0J4Kgg UOvqZVv6gw9048jWBIEIqJ6V3n6sKuhQ+QQEPpfh3VsXc8dMmAWCeUPLevyIW/zR6yrA YDhpjhMvu/tr3Qp2DqxNGvbbwGMErdjfkpfn/AdkHnUGkSS9UtxRpDE44f5v1x/xiENI XKj01NYbRLWZipzo4R/lSXlTDFIyXpP7wvgEJ1JzCbZqsJcT74FjJTVY8oHRlPIwclfg lhszcFfJWLikuiZSZViH60VRJ1Z9jNKLYS/ZOO28RK7KihTiJwibFTPTlvZOWVc0cr+T ghbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DPozms87; 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 kh15-20020a170903064f00b0019e608da5absi1588017plb.322.2023.03.10.00.55.17; Fri, 10 Mar 2023 00:55:30 -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=DPozms87; 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 S231201AbjCJIfV (ORCPT + 99 others); Fri, 10 Mar 2023 03:35:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjCJIfJ (ORCPT ); Fri, 10 Mar 2023 03:35:09 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 744EC57D27 for ; Fri, 10 Mar 2023 00:35:07 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id x3so17303464edb.10 for ; Fri, 10 Mar 2023 00:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678437306; 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=qq0v9YVI3wtTDDjRzU92twoQtmr2PxAaTyrW0UMmWQw=; b=DPozms87b/PKkkvHKub1WKUztXE4+jPb5NnQzzW1kMEuhkF8hKSWBzkPblC7l61XQh EZ1IRrjDeI6vRq9phb5K1GGpS+AbLi8zw0oHClXEhj+1S/M50sK6Zh87BFVW8E/x1k86 GPNd3m060qI+rO6sDrrMjMqBIjYU5L0drL2gxFllMpKGHFfM6Ib4pIGPrHMslE4+1xS7 IPPJxK0q+RZLSIQg8FCsIpBBqs8h+Gwp/umX+b9Mhp0jaWndX2nPWxVv7fpU6/ZKK7xn EzRJ/uL5ZIzsIfu46DzMC6ihuntdr1MWemfP1ze9dgz+6G5NssJ18c5vqAveeFWzRxqS HsZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678437306; 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=qq0v9YVI3wtTDDjRzU92twoQtmr2PxAaTyrW0UMmWQw=; b=z/7cIWcy4nLDGP5x26av/tWp02wg/wL8hejf2fqjgYqTEp/yNPkKPFePeHowv4fWzi 3REZ9oiIirRK4oIgPBxkcnEx76m8OHnfE6PAD7jMcd8oHQLOCJfA8bfUfEfO3/9iHqFv AYX2EN2OiRaNFJuk6R7I9LLiL6909FpaGbN1bgaO9g7+4H3mnFRioe547MNf6molQ5qc JHSb0qIKkwC4N/D8DU0gNKiCs21EO4jyznIPNqjU4yg9U1mvDr++dILf4b08rlTPXqdd YUjqNG8KV136hlb1X7roL6LKP7jFWdIHkF+nwuJVDdY6meAOwTkIbbVgadc4Jcnu5IkY x3xA== X-Gm-Message-State: AO0yUKWHF64w4MYAV7VD9Mec8y/BHKY7qdb+nya22LmyNs294miaH50d cAMPDNkrimHyRBi0bBzBsrE= X-Received: by 2002:a17:906:6d85:b0:8c3:3439:24d9 with SMTP id h5-20020a1709066d8500b008c3343924d9mr19667016ejt.24.1678437306035; Fri, 10 Mar 2023 00:35:06 -0800 (PST) Received: from localhost.localdomain (ip5f5abbd3.dynamic.kabel-deutschland.de. [95.90.187.211]) by smtp.gmail.com with ESMTPSA id h10-20020a17090619ca00b008ce5b426d77sm697888ejd.13.2023.03.10.00.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 00:35:05 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 1/5] staging: rtl8723bs: MapCharToHexDigit() is not used Date: Fri, 10 Mar 2023 09:34:45 +0100 Message-Id: <20230310083449.23775-2-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310083449.23775-1-straube.linux@gmail.com> References: <20230310083449.23775-1-straube.linux@gmail.com> MIME-Version: 1.0 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_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759970360494645112?= X-GMAIL-MSGID: =?utf-8?q?1759970360494645112?= The function MapCharToHexDigit() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/hal/hal_com.c | 16 ---------------- drivers/staging/rtl8723bs/include/hal_com.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index e42556d03bce..b74817fc4316 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -859,22 +859,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num) return true; } -/* */ -/* Description: */ -/* Translate a character to hex digit. */ -/* */ -u32 MapCharToHexDigit(char chTmp) -{ - if (chTmp >= '0' && chTmp <= '9') - return chTmp - '0'; - else if (chTmp >= 'a' && chTmp <= 'f') - return 10 + (chTmp - 'a'); - else if (chTmp >= 'A' && chTmp <= 'F') - return 10 + (chTmp - 'A'); - else - return 0; -} - bool GetU1ByteIntegerFromStringInDecimal(char *Str, u8 *pInt) { u16 i = 0; diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index 6356b8c2ef81..8a7d31d1eaca 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -147,8 +147,6 @@ u8 GetHalDefVar(struct adapter *adapter, enum hal_def_variable variable, bool eqNByte(u8 *str1, u8 *str2, u32 num); -u32 MapCharToHexDigit(char chTmp); - bool ParseQualifiedString(char *In, u32 *Start, char *Out, char LeftQualifier, char RightQualifier); From patchwork Fri Mar 10 08:34:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 67276 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp754637wrd; Fri, 10 Mar 2023 00:42:04 -0800 (PST) X-Google-Smtp-Source: AK7set8oM6Jy2tfHkGjBH2WyUpY0uo4rwKOiaCa9pvA8iCy9gUKDIhuUiVpj+XXPcI2vl2vYdoLg X-Received: by 2002:a17:90b:4b49:b0:234:b2a:8251 with SMTP id mi9-20020a17090b4b4900b002340b2a8251mr5685597pjb.0.1678437724578; Fri, 10 Mar 2023 00:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678437724; cv=none; d=google.com; s=arc-20160816; b=yyEOde6guFRnirKojhLmPvrkIVTQQy9hL5Prm0h3nRWN2W1cQV4UCGKdEzSdwryAnp JwPwAm0pRW9iJwW7dlDPQLzNo2bLiLtyiTPO6JrIN+iuY+84ZR83CSrnYe8+x+aqcUii ozimmlIXFjUAopjusqdNTZfkZiMZ3FVFrnUFG/ce42ydxbMtCFYSVsaHXb7N1LdSw8gd 2OAQ/1s22A4fv2zTUcsS/csVyzVW5za3TxczCFpz57Gf6z2TFiElXnayEAaAyArgy4Jf LBcELXpqjvqXQ3LiAid7Tjy1BWeJqeJ/MK+QgEa4aXKG/llkiew4NROyUcRY9Abp80Yi lrBQ== 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=gReelpVe4zvSWiZRdb8tfO79qo06lsPORLYzKHhKDKI=; b=sU4uM7NxGb8rMqLRK67TVSA/xhGumKMeLdq1BHSdRdIhacLDOU+aEg7wxYSSxHWeW/ x118Yjz6nGS97SJ4W7vCPVY3wbs4euSYenc/qJbIgqWO3m5hnksuN4hR4hHb7Mo9sCvW No5nFYuTEX3lmofuxktE8bnIZFhTkodxDhb/NNVmXN0f0bJhfPKSLrErqxRxqh/8Z2P1 DUE4x+r1N9PxebiMjn8iO1JKRQFzV4DXT7of5JPoSGXCsuSZl+7TOm+YGDEP1lwyRBsL OAOyq+ZadRRGK5q104gIUO8555HxMOsynmD/ufm9ovOZJnvtzjRxElVGchLaqaGf/OqK E+cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SWku8Pd8; 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 a7-20020a170902ecc700b0019ca809751dsi1569891plh.227.2023.03.10.00.41.49; Fri, 10 Mar 2023 00:42:04 -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=SWku8Pd8; 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 S231218AbjCJIf3 (ORCPT + 99 others); Fri, 10 Mar 2023 03:35:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbjCJIfM (ORCPT ); Fri, 10 Mar 2023 03:35:12 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A0E75D746 for ; Fri, 10 Mar 2023 00:35:09 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id u9so17429673edd.2 for ; Fri, 10 Mar 2023 00:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678437308; 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=gReelpVe4zvSWiZRdb8tfO79qo06lsPORLYzKHhKDKI=; b=SWku8Pd8dDAyAUoUWp4nVPyVnmqu8m9KfnggqUW6hqjOiOCxQGQmhrjYXw/XTV5q6D NJUXM9/K6dyg3UTvC+ZwmN+X5axinHki4oXxkcUtDTYfFO2NlDbzTgCKZzzSC2gW8GiZ Z03AgvUWM6axMuK6GFIRshNHF2bKNtJQJQJYxVkp39Rm+MKkUluYXjfjkjwo1dOKVxHb d6EjEiVwg0J01uiAs9VIsITZCCiLvo/e++CIrqX2XzLrrNg6Y/WM7KVAYJ9k7KxEGQVZ ywzDlwkF6hFvWI9Sd1EzfekYpi06EiIKtKGysvRyRuzyXzb3LTgCvJXBo1PMq7OSbOId kHHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678437308; 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=gReelpVe4zvSWiZRdb8tfO79qo06lsPORLYzKHhKDKI=; b=z0sY5n4v+NGx95Ajbvo75vRllQ9DylXX8N37SvFFnVr8RIQNgy/IuPSh7gzfgKW02p AWcXpFRTjh6OCDmdSnCKQ5pslgbQNnTzVyC0EpFXC/yOjN3Zowm1m8d3QxGbIuCqFHbG n9wBTyf1TzhUD8rZhQhcDriOj+i266sHdf8aSjX3GDt9MHSnF0BlWukKgtN6ix9PwmHt Db6VP3VhMaN/xfWzmNkmtSEuV0Y6Mwo2uOdvD1XtlT7HjnFxao0Av6uIYowxs2zkB6xp jmOzjuCjg8d7DISDVeW0klUKsf64QL1ThGMAtvJK16hgKOaRaES0vH1C1Drnxd2qBHsG HD5A== X-Gm-Message-State: AO0yUKVvZHVNZfH4MVw6fRNFq/ceHR1NMPEzFWtzNnWG0cTU/TGg5nRs tXNyhF4xifFJif7dV9h3XQU= X-Received: by 2002:a17:907:d14:b0:8f6:711b:8d67 with SMTP id gn20-20020a1709070d1400b008f6711b8d67mr34277473ejc.26.1678437308048; Fri, 10 Mar 2023 00:35:08 -0800 (PST) Received: from localhost.localdomain (ip5f5abbd3.dynamic.kabel-deutschland.de. [95.90.187.211]) by smtp.gmail.com with ESMTPSA id h10-20020a17090619ca00b008ce5b426d77sm697888ejd.13.2023.03.10.00.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 00:35:07 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 2/5] staging: rtl8723bs: ParseQualifiedString() is not used Date: Fri, 10 Mar 2023 09:34:46 +0100 Message-Id: <20230310083449.23775-3-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310083449.23775-1-straube.linux@gmail.com> References: <20230310083449.23775-1-straube.linux@gmail.com> MIME-Version: 1.0 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_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759969515569302919?= X-GMAIL-MSGID: =?utf-8?q?1759969515569302919?= The function ParseQualifiedString() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/hal/hal_com.c | 24 --------------------- drivers/staging/rtl8723bs/include/hal_com.h | 3 --- 2 files changed, 27 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index b74817fc4316..ff0e41bf72b0 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -877,30 +877,6 @@ bool GetU1ByteIntegerFromStringInDecimal(char *Str, u8 *pInt) return true; } -/* <20121004, Kordan> For example, - * ParseQualifiedString(inString, 0, outString, '[', ']') gets "Kordan" from - * a string "Hello [Kordan]". - * If RightQualifier does not exist, it will hang in the while loop - */ -bool ParseQualifiedString( - char *In, u32 *Start, char *Out, char LeftQualifier, char RightQualifier -) -{ - u32 i = 0, j = 0; - char c = In[(*Start)++]; - - if (c != LeftQualifier) - return false; - - i = (*Start); - while ((c = In[(*Start)++]) != RightQualifier) - ; /* find ']' */ - j = (*Start) - 2; - strncpy((char *)Out, (const char *)(In+i), j-i+1); - - return true; -} - bool isAllSpaceOrTab(u8 *data, u8 size) { u8 cnt = 0, NumOfSpaceAndTab = 0; diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index 8a7d31d1eaca..31fdb5c45de3 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -147,9 +147,6 @@ u8 GetHalDefVar(struct adapter *adapter, enum hal_def_variable variable, bool eqNByte(u8 *str1, u8 *str2, u32 num); -bool ParseQualifiedString(char *In, u32 *Start, char *Out, char LeftQualifier, - char RightQualifier); - bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in); bool isAllSpaceOrTab(u8 *data, u8 size); From patchwork Fri Mar 10 08:34: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: 67279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp755045wrd; Fri, 10 Mar 2023 00:43:22 -0800 (PST) X-Google-Smtp-Source: AK7set9z6ofOjwNwnDedD4Ve92dPCGtsNCb4U2Ayx1QAHzH+zCwDzNt5lqDcookO0IwCgjoLyQqP X-Received: by 2002:a17:902:f68a:b0:19e:6084:da58 with SMTP id l10-20020a170902f68a00b0019e6084da58mr30623356plg.4.1678437802663; Fri, 10 Mar 2023 00:43:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678437802; cv=none; d=google.com; s=arc-20160816; b=Ya171VqHpAHEG/oNqssVJMwGu7slp0gzAZ8CxZCrqnPQdJ2q9BKhqTV/hiuveOWixT svyJbKLH8DEQFXWogACPkYgF3PWwR1oEK5nAkXJ19qWR/JuaQHbKAmOv3qopQFD22YxE t1wU1R2MGTp1KJJxLrHR0kugYpkiICtpnIjtPlztbwj0SqyIZemFCeN1UPkyajDBka62 On44ycqEELAueCOkDBSCmiehbZyYXICrUhMdS/H8qiJcLuKkgU26QKHMZoEP314bgBTL 6fpArHVGu6nZP9j9fJnsQNmaE3nFnqZKcyx+ayeCh2nr7+NVMVPjLPKa/EjaeSWcBaqs fEog== 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=s4eERmpGRWxN7WGTZJirAqZLtcWVZejiRDlj9T4wObg=; b=emMk//HE/pRphotumBAZVrLpn5G8G+kIM96RvHLW1o7TAoFW41Zc2fUAJ75eqhBisU 8yxpYev2UTcTiVtcZUUeHnlfud5jFmbE3q4nBZ23P6M2yUc0aHVdE3vB9GoF9IwEi5uG OAXySWQkkESQh6Q7sW6ce9L+8NAHX+z2ZSzFm1h2y+U4K6kNimxJ6xj6OxxdjgDGl5Em LzWiYBcTNW42vXRRGW6KMJZ5qvan50w6Rz64c3vkaYm9RxY/g3QLljnQF9drlnowOw1f wbNMi5Y1xCCpIEjCEOIyUkTOxbuzXoQlJrIDhHFIyCjXbOm7muwydQbFrQvVAImj1euf 23VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="QEHT/Kma"; 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 kf7-20020a17090305c700b0019a986428a8si1535137plb.580.2023.03.10.00.43.07; Fri, 10 Mar 2023 00:43:22 -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="QEHT/Kma"; 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 S231249AbjCJIff (ORCPT + 99 others); Fri, 10 Mar 2023 03:35:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjCJIfM (ORCPT ); Fri, 10 Mar 2023 03:35:12 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8A16153C for ; Fri, 10 Mar 2023 00:35:09 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id da10so17429209edb.3 for ; Fri, 10 Mar 2023 00:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678437308; 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=s4eERmpGRWxN7WGTZJirAqZLtcWVZejiRDlj9T4wObg=; b=QEHT/Kmafou4c+fPJ4W3mksw8ajqdo2XLzLsHGizvtqOzI7nCHZoz67aRqVygsWNYI vYYEJVdHtWJ1ByZTTanLjVOpcB4EeOamopmdXVZzv4SrO/Nlgr6bIN6/EtCuiop81i1+ qbQPTif6bWMIjblA5muXgURhXELE2Ost6+EW/qo+b21PoubO9ZVRj9NnZg5BfYr/R6L7 9//z+geQJ6je0xWKAAvis5k/814C4zAeonRRvnkO6XbvwFWSvgwC0cuTio/4Eb8F6V+J 69/G56a6W86SdCANiBZ4DXUuH1IvLz8bI837HzWqvNxi0cF/PvApv3mg6MV1AYZB19VG Da+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678437308; 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=s4eERmpGRWxN7WGTZJirAqZLtcWVZejiRDlj9T4wObg=; b=W65Q7oEmN7bEbJVpZud7sSSG5VBZnY3UXL0pZ1GGw5Nq7qSocRQVpuf99Rgz51FKKh EzWfjprnPtvQfkQgEpsUPLwI6MaWsx2y5FiO21wF/PdDOwQpZVg2VpNbyClSE4GZHVO8 ed3toFUrppB8a70q929m/lhKRYTkVlXB3XlTHiA/y0XHPIDk2iUVXrto1cVk6V0356Fh aIrsuyz+wFOnLLdCsv0Lu1SqKh1ZdI6tqz+VYz86RXrZetfUAA6LxYUmeAHKEwlsnsHr RnlXSfRM3VFACwgN5QnJxtLjirVjt+1BE3LVuwoY0OrbYtFimPEpyRTpWjPjplR54PYE GDbg== X-Gm-Message-State: AO0yUKUddXTMjNp4p6afXf1rgsHIhKi/K85YAIvy1sL+JEn/4YQmGe1C a/QDkDnwiU9ENsskHWQ8pQ7YGgRpPWE= X-Received: by 2002:a17:906:d9c2:b0:8b1:7b22:90b6 with SMTP id qk2-20020a170906d9c200b008b17b2290b6mr23302762ejb.37.1678437308487; Fri, 10 Mar 2023 00:35:08 -0800 (PST) Received: from localhost.localdomain (ip5f5abbd3.dynamic.kabel-deutschland.de. [95.90.187.211]) by smtp.gmail.com with ESMTPSA id h10-20020a17090619ca00b008ce5b426d77sm697888ejd.13.2023.03.10.00.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 00:35:08 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 3/5] staging: rtl8723bs: isAllSpaceOrTab() is not used Date: Fri, 10 Mar 2023 09:34:47 +0100 Message-Id: <20230310083449.23775-4-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310083449.23775-1-straube.linux@gmail.com> References: <20230310083449.23775-1-straube.linux@gmail.com> MIME-Version: 1.0 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_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759969597374346143?= X-GMAIL-MSGID: =?utf-8?q?1759969597374346143?= The function isAllSpaceOrTab() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/hal/hal_com.c | 15 --------------- drivers/staging/rtl8723bs/include/hal_com.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index ff0e41bf72b0..da68557c5b20 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -877,21 +877,6 @@ bool GetU1ByteIntegerFromStringInDecimal(char *Str, u8 *pInt) return true; } -bool isAllSpaceOrTab(u8 *data, u8 size) -{ - u8 cnt = 0, NumOfSpaceAndTab = 0; - - while (size > cnt) { - if (data[cnt] == ' ' || data[cnt] == '\t' || data[cnt] == '\0') - ++NumOfSpaceAndTab; - - ++cnt; - } - - return size == NumOfSpaceAndTab; -} - - void rtw_hal_check_rxfifo_full(struct adapter *adapter) { struct dvobj_priv *psdpriv = adapter->dvobj; diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index 31fdb5c45de3..839d93d8a1df 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -149,8 +149,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num); bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in); -bool isAllSpaceOrTab(u8 *data, u8 size); - void linked_info_dump(struct adapter *padapter, u8 benable); #ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter); From patchwork Fri Mar 10 08:34:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 67277 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp754807wrd; Fri, 10 Mar 2023 00:42:35 -0800 (PST) X-Google-Smtp-Source: AK7set+3j6YiO3tB1BkmELOMqt1Dxdyrg0zPpeFkSWwbVIQGdOuTY5zbDXC6e1Q4aY8zASczTwlL X-Received: by 2002:a17:90a:520c:b0:233:c301:32b3 with SMTP id v12-20020a17090a520c00b00233c30132b3mr24280841pjh.3.1678437755057; Fri, 10 Mar 2023 00:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678437755; cv=none; d=google.com; s=arc-20160816; b=f6LFJnpVBULsaJJdY7mPvgxfafNa6pfqpfczxie3YgxQyrTDHOIKs1WXonbY1+AYFa WqOkoaG+Q39XmsK/obEoIFxny7dV3iRVE3RXhovytQAjCCYQPKsTRC3bEYeyniExDSOQ HUdDcSeoV3RM0SOsNsAji++C8CwzIAtB87IhzELSuHC3obBFx/osW5tkHWlgDOgJ9Wrt LZ5dmw9Q3EAnAAe+tzBaSzdUHJky0xMCrijOCYPldHQApE1XBRu6YD2irP/p40QYvZas JI/NLEuCjX3Niv4saDWfFKldW+09YrNIGAZD/zaBXbb12FtgljytDO1lbiQ1A6yUNTr1 dqTw== 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=oFs/e/K/gilrBIUS/3vF7+owOyPjJYDXNevbCxgiE/4=; b=tacLEA5X5iPjsL2Ll4OaetMi2uRPxGfMAKgZmmboqFsBJcysFcTIGJWoz/hkqo4fVk nU3LX2SptzQVG01znFQlQprMjwYstTw6TRml6EbfZG41bTIuiwnPluFyNOHpr7CPsDnr IJ2ZExrou4clnQzyVP3T6QXvE2NuNQ3lrvubpdLAMJZKbbeAmtyrfaIemhuOy9zY0X5Q Z9Gh4f60ZeDBwBesAqGB+cfnj+ClqU3Cn089XNJLHsLe/ZgcnFr1JNlewb/umz72v9Kp eQr+I8DtJyRMWt1s5eleZjlcuIhJcQGR1VOoClpiPRfEfSMD2FDvaIXf+Q2gCQvDOUly RuMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RBkobFKJ; 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 s7-20020a170902988700b0019935c3fdc4si1573579plp.58.2023.03.10.00.42.20; Fri, 10 Mar 2023 00:42:35 -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=RBkobFKJ; 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 S231251AbjCJIfg (ORCPT + 99 others); Fri, 10 Mar 2023 03:35:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbjCJIfN (ORCPT ); Fri, 10 Mar 2023 03:35:13 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A9F662D88 for ; Fri, 10 Mar 2023 00:35:10 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id ec29so17358921edb.6 for ; Fri, 10 Mar 2023 00:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678437309; 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=oFs/e/K/gilrBIUS/3vF7+owOyPjJYDXNevbCxgiE/4=; b=RBkobFKJ41nf/fAPlQny3VRJNwdx8fMPH4lp5Z454gp+GwXUmlPcJuYgMoYmBq2a5N U37LQ2hsJ8LRI/fJFR/ctcpJIIeIJg6LzQTB7lMCzM/wUDtN1E/6TmFG+4FlPJ16w+Ir Z+KTbWNcggIOfMBWwUKuNgMC6ZInlEyST4ZsCMeaU68ZTSlVg97/Wzz/jJf+tkDknIBb +wVAWiEQUyP+spNrrcXCmczq06tzSyhWG0wKAnNtmGFZno/hgtDP4DYnTAvdtCyZoKzc qrEZRS/CxTmg0EAre8rcOxwkojquYa1OQvyxyy2skXFPoS1lZGeubw2/kYqyBlpOy6tA 8zlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678437309; 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=oFs/e/K/gilrBIUS/3vF7+owOyPjJYDXNevbCxgiE/4=; b=7x9vZEJJ9sRD6NSaMJegSgjvnjTMupwQ6cZvV7+HwQFCIKnDGp0A/2NDRPUuDSocO9 CjQhfrZLSK29PiDUD/yqLbruGNWotJ4volM2zrUKu/cIU7mXXOixi/ckfiXCtsiirPJP brgM9/lek0HD4wQps6fDI7vFURVYNm2kTumTELpzgAVJklaevhLC5hA+951T+wnCs2Er 9yD8bRwW/YggQ1ByhEFrdEbWdN/4l7jHxSOY17oGUN+v/at005+/eqDEovW9YVMp3J9F Jz+ZFBHFL9Isxr1O4CHAw+xx/MY3rGkWLmu6Ge6wbKVtZEBe1sx4p9/tTBRsLZE685fq LcUQ== X-Gm-Message-State: AO0yUKXgLQqzb9l3UCTOfBBdrZp/dC8Zmdk9+HTxjHp1HvPFC9AzYYu6 BWCB6rZCRuJIAwHZLL5f1cw= X-Received: by 2002:a17:906:fcb2:b0:8aa:c105:f0bf with SMTP id qw18-20020a170906fcb200b008aac105f0bfmr28935468ejb.17.1678437308902; Fri, 10 Mar 2023 00:35:08 -0800 (PST) Received: from localhost.localdomain (ip5f5abbd3.dynamic.kabel-deutschland.de. [95.90.187.211]) by smtp.gmail.com with ESMTPSA id h10-20020a17090619ca00b008ce5b426d77sm697888ejd.13.2023.03.10.00.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 00:35:08 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 4/5] staging: rtl8723bs: linked_info_dump() is not used Date: Fri, 10 Mar 2023 09:34:48 +0100 Message-Id: <20230310083449.23775-5-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310083449.23775-1-straube.linux@gmail.com> References: <20230310083449.23775-1-straube.linux@gmail.com> MIME-Version: 1.0 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_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759969547482695819?= X-GMAIL-MSGID: =?utf-8?q?1759969547482695819?= The function linked_info_dump() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/hal/hal_com.c | 21 --------------------- drivers/staging/rtl8723bs/include/hal_com.h | 1 - 2 files changed, 22 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index da68557c5b20..792636fe3270 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -897,27 +897,6 @@ void rtw_hal_check_rxfifo_full(struct adapter *adapter) } } -void linked_info_dump(struct adapter *padapter, u8 benable) -{ - struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); - - if (padapter->bLinkInfoDump == benable) - return; - - if (benable) { - pwrctrlpriv->org_power_mgnt = pwrctrlpriv->power_mgnt;/* keep org value */ - rtw_pm_set_lps(padapter, PS_MODE_ACTIVE); - - pwrctrlpriv->ips_org_mode = pwrctrlpriv->ips_mode;/* keep org value */ - rtw_pm_set_ips(padapter, IPS_NONE); - } else { - rtw_pm_set_ips(padapter, pwrctrlpriv->ips_org_mode); - - rtw_pm_set_lps(padapter, pwrctrlpriv->ips_org_mode); - } - padapter->bLinkInfoDump = benable; -} - #ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter) { diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index 839d93d8a1df..c1aa7f0a35f9 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -149,7 +149,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num); bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in); -void linked_info_dump(struct adapter *padapter, u8 benable); #ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter); void rtw_store_phy_info(struct adapter *padapter, union recv_frame *prframe); From patchwork Fri Mar 10 08:34:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Straube X-Patchwork-Id: 67283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp761051wrd; Fri, 10 Mar 2023 01:02:15 -0800 (PST) X-Google-Smtp-Source: AK7set9dyuD4mguiFPWq8r+Dk58N2aL1DmKgTyIEn0MuZ7ngWUYfEWA9NT7rmbWI6XXXIf6tZCd5 X-Received: by 2002:a05:6a21:788b:b0:cb:77f0:9a27 with SMTP id bf11-20020a056a21788b00b000cb77f09a27mr27837840pzc.24.1678438935495; Fri, 10 Mar 2023 01:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678438935; cv=none; d=google.com; s=arc-20160816; b=07ryFquxXESYYzqN4Spjj0NzQEh+/ZriV5x2328BCLk6qZOuIkVxj7ahyt1WXiNN1S R/NgMveoySQHG2Nv8Er9ZH0nIqWUEF65SlT0zt1VTGoyvm0XOa33wgeT0JAm03NZzuD0 xea6TUcZJ17JNHV0adSmElpIAEQbR1aJDas23DlvvvDFU/PwvV7zE1nKVQ72atKfdrsW hsIKS7EXWcHu/6XVNTgXLOfsQd3g9uKBKzICYB2UPl0LmN2ZtcwsZKeCXZX/0xc495kn awB2cARJoUXdn8YpFQyprYjNcuAWCv+CIH4oXkOGPWmHbA4m6lVITZW55jdGyL+qS01u bxfg== 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=msAKBo8aTzc9Ggd6g1HwoQudAOedzcnckHsa9qcUuhU=; b=dyuRP4XS8HL55D0gWui3eEbdrx8EB5Jz7hG8yseGphF0CfzDZjOIPm0cj+r7mrpowj aQtqqOlnLfZGsV39/ndShRvaiT8+8arij2fF4LghCzNq1cGTR3pL+SRfB7jCnWXxovbt imUHOZ5f7tN+RuGhJaEOR1NqHceild4VN0BXaU5ov+8+HNk6MugZJgodqe84UJAfg57V jK7lh8rawpSwbxhZk6+o3b2PEC1HznjC+SJkcw6itaEvCtpNhJNKHPCYzHrru+QH3MmB Z+O5Y+ZY8R4JqzxzpQXtoF8ESC1vKAWv3aFMnm/lOFdJLIy9YDH6A/oncdiubFx96ngS SfUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PzmwXRfM; 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 h4-20020a63df44000000b00502ea14e6ecsi1423087pgj.712.2023.03.10.01.02.02; Fri, 10 Mar 2023 01:02:15 -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=PzmwXRfM; 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 S231255AbjCJIfk (ORCPT + 99 others); Fri, 10 Mar 2023 03:35:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbjCJIfN (ORCPT ); Fri, 10 Mar 2023 03:35:13 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF8A962DB3 for ; Fri, 10 Mar 2023 00:35:10 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id i34so17339096eda.7 for ; Fri, 10 Mar 2023 00:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678437309; 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=msAKBo8aTzc9Ggd6g1HwoQudAOedzcnckHsa9qcUuhU=; b=PzmwXRfMGrJIqx4xxVlb9XULjKpymRYv/u7KKo5I3aB4ihccXSnVkurxp8VjDYqVnC JfKZgG+LjfQY86kxUQyadFXLr3qUrkX9/DwITbpftNDZyfrGt5UKQ4cSP5CVdAvP8/8U cyRB2N8XU6M3CBY/HLOxaeSA/bSDQ1ix+BHV1SXvvSGAs0K0X6/3cP8HTwwnv6dqr28n fcygIkgSKCU9Xthq6eON9P3rgwVWtddSpzJ7/gVd7RMPESnjaEUEJB7zbJFwPff7MuzC G9ky1RkvmKhgyrJM63ww/3nMqJJ2j5jIyKe9+UNCjqg/oGeKteOrSFWvD0l1YE5czzDd t1pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678437309; 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=msAKBo8aTzc9Ggd6g1HwoQudAOedzcnckHsa9qcUuhU=; b=y21iEt8rLSkBAKSvo19YMnHDTg6CDIuy6HpLyxpAEY0z+alwo6+ZiEhjRYMb3KCE8k ddbDpYS2/Lsv10NpWHkGbMgtHivbPOxv+/IqgyUiCZ80Cu+/vILFWXLywat/Y/Eu8db/ Rp0TzzBDZ8TmcQ5BRDzVU5wbMNmK0PZIoFuoAIBXq+YjL2tmCeOIz20OehegvSOblxLf XFfCghNjpBtQ88hZDRtQMZT7A5Tf/qf8Rm/0KLIkLDzeZG5ScqP8z5GlT28SldhMUu9u TgYH4bTWCkMOxxZeJwwF3ePySjAfuH6x4HuX3KM+81ySFW3wUIQZK9594ihRmsHjHcf7 zw7Q== X-Gm-Message-State: AO0yUKVkZCQ0xSgBz+WVPnQT13f9Ah3ISSlPGDET1M/Pji8b5ZgHXEKk cFotNkGr9ISU6dbkhV9BBivW1L9O518= X-Received: by 2002:a17:907:8746:b0:8b1:7fe9:162e with SMTP id qo6-20020a170907874600b008b17fe9162emr27434749ejc.47.1678437309325; Fri, 10 Mar 2023 00:35:09 -0800 (PST) Received: from localhost.localdomain (ip5f5abbd3.dynamic.kabel-deutschland.de. [95.90.187.211]) by smtp.gmail.com with ESMTPSA id h10-20020a17090619ca00b008ce5b426d77sm697888ejd.13.2023.03.10.00.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 00:35:09 -0800 (PST) From: Michael Straube To: gregkh@linuxfoundation.org Cc: hdegoede@redhat.com, Larry.Finger@lwfinger.net, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH 5/5] staging: rtl8723bs: rtw_get_raw_rssi_info() is not used Date: Fri, 10 Mar 2023 09:34:49 +0100 Message-Id: <20230310083449.23775-6-straube.linux@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230310083449.23775-1-straube.linux@gmail.com> References: <20230310083449.23775-1-straube.linux@gmail.com> MIME-Version: 1.0 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_NONE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759970785196827106?= X-GMAIL-MSGID: =?utf-8?q?1759970785196827106?= The function rtw_get_raw_rssi_info() is not used anywhere, remove it. Signed-off-by: Michael Straube --- drivers/staging/rtl8723bs/hal/hal_com.c | 32 --------------------- drivers/staging/rtl8723bs/include/hal_com.h | 1 - 2 files changed, 33 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index 792636fe3270..852232102433 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -898,38 +898,6 @@ void rtw_hal_check_rxfifo_full(struct adapter *adapter) } #ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA -void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter) -{ - u8 isCCKrate, rf_path; - struct hal_com_data *pHalData = GET_HAL_DATA(padapter); - struct rx_raw_rssi *psample_pkt_rssi = &padapter->recvpriv.raw_rssi_info; - - netdev_dbg(padapter->pnetdev, - "RxRate = %s, PWDBALL = %d(%%), rx_pwr_all = %d(dBm)\n", - HDATA_RATE(psample_pkt_rssi->data_rate), - psample_pkt_rssi->pwdball, psample_pkt_rssi->pwr_all); - - isCCKrate = psample_pkt_rssi->data_rate <= DESC_RATE11M; - - if (isCCKrate) - psample_pkt_rssi->mimo_signal_strength[0] = psample_pkt_rssi->pwdball; - - for (rf_path = 0; rf_path < pHalData->NumTotalRFPath; rf_path++) { - netdev_dbg(padapter->pnetdev, - "RF_PATH_%d =>signal_strength:%d(%%), signal_quality:%d(%%)\n", - rf_path, - psample_pkt_rssi->mimo_signal_strength[rf_path], - psample_pkt_rssi->mimo_signal_quality[rf_path]); - - if (!isCCKrate) { - netdev_dbg(padapter->pnetdev, - "\trx_ofdm_pwr:%d(dBm), rx_ofdm_snr:%d(dB)\n", - psample_pkt_rssi->ofdm_pwr[rf_path], - psample_pkt_rssi->ofdm_snr[rf_path]); - } - } -} - void rtw_dump_raw_rssi_info(struct adapter *padapter) { u8 isCCKrate, rf_path; diff --git a/drivers/staging/rtl8723bs/include/hal_com.h b/drivers/staging/rtl8723bs/include/hal_com.h index c1aa7f0a35f9..17d5cfb66a36 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -150,7 +150,6 @@ bool eqNByte(u8 *str1, u8 *str2, u32 num); bool GetU1ByteIntegerFromStringInDecimal(char *str, u8 *in); #ifdef DBG_RX_SIGNAL_DISPLAY_RAW_DATA -void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter); void rtw_store_phy_info(struct adapter *padapter, union recv_frame *prframe); void rtw_dump_raw_rssi_info(struct adapter *padapter); #endif