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);