Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1744859rwe; Fri, 2 Sep 2022 03:09:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6gjoABGaYe8uQ5V1IS5MP0oNrIlVAqqwdYC2eST9zwHEP714stoN2f4uQJ8uX4PAw5em7h X-Received: by 2002:a63:b250:0:b0:422:e3a6:47f2 with SMTP id t16-20020a63b250000000b00422e3a647f2mr7446629pgo.478.1662113375712; Fri, 02 Sep 2022 03:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662113375; cv=none; d=google.com; s=arc-20160816; b=f+LB1i8UhKrXxkGMugNvABHSMefVfwKyrwUo3qpTMGUzZrNbOeIMlZV7vZZNAUya6C /eVzttXwGRjOZ1A4xvt6R9AKR9bWp2VDQu+ZEMzAydmmQ4Ld9n2/gpBVNB/TTdoemQvG 04z7OWkl7AytQLjbRj6u/zT+MPN8GnBoOnubN0ZdRKMfEhQnGz/gPuU43sJGbpdYGzET i3CXkhd/drTgIqOhzl1pyuDaaxXPjPD9LMVr9mI6zlJRmQxOL8qQ4lQmW71pvYp5yyjp rnWRDqUXqy0kcUOAB1sKtQyrONduIZCfngxxJu1t+0FkqMyMvVxP18PRK6vcbZr0ao5O Jefg== 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=XpHH42SQLJDVes7ZZ1hXimWD0tWN6qFGRFQjolXplgk=; b=aQ99w5kBdNgC1xpCEX4kzO6kMPAwNheORgI094119re//p/5PfFJ+aN2Bx6gq73TRG QR9sPn1KZk1Tc9BpA3LvVv/JLEvx+XW8OF8GtpX1Z1x717Pmh5rE5dv7znSevQBdjKGr He28m9beETTQSxc2wda8OUEJ7VUO1V7aWxXx206h+z7OQ2okOBzSrixUAAvHhC6r65eq k+Bdf4QFzt8Bow6gQPq3G/YyN85gTh0wHKoJiX75Ta+NT2uDWIR3T8lFg7We6V9/nMdh yMxY6xI+pQjJ+ru3Znnl4pg+UNcU/ND/F9pdbfod79Reqq9yliEGs65n/tg5O1shTnv8 OkSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p2HZ+y3P; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a056a0008c700b0052eb2a4e1f6si1779413pfu.247.2022.09.02.03.09.24; Fri, 02 Sep 2022 03:09:35 -0700 (PDT) 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=p2HZ+y3P; 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 S235878AbiIBJxS (ORCPT + 99 others); Fri, 2 Sep 2022 05:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235537AbiIBJwn (ORCPT ); Fri, 2 Sep 2022 05:52:43 -0400 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 2537783047 for ; Fri, 2 Sep 2022 02:52:40 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id w2so2032092edc.0 for ; Fri, 02 Sep 2022 02:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=XpHH42SQLJDVes7ZZ1hXimWD0tWN6qFGRFQjolXplgk=; b=p2HZ+y3PZt8dbds1f3sAYhlZgc6o0fIxKkgVd5OdusQC8+2V6emYxX4kaoXmhyfW26 z+2DqwS2uvTawWnsfIgWB4bB9ZPNyDY9PkhBEf9w+old+3r4vcrTpAtH3EAuGLMU63On u/yI8+4W2NtvlZBElgO1Tf8oBW6h9dACoJOj1dahexueIY3OjKoLoiNVNMWEOe3YI8Rf N/9EnEAqDm33Ka6CvqXDjtTeoTc7f4gdZcrod4TzB/528ruAFKUPoe9f1UheR1IH1PA1 pX5eEw4uCtUB9+m4mOvXnPNj5uJOfY/PEHHPDgQ87VAWzjqnqPNPdtQA8X25PoZp/Owq pwFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=XpHH42SQLJDVes7ZZ1hXimWD0tWN6qFGRFQjolXplgk=; b=BM4YI+a7S8un2Afq8FqWW/aUtRI8FC6h9lgd67ahxCThmzfkSv3SKP6SpM79UHyuEn 1iWzOvaqCHgutqfdZsmPk7+b8pyuDDa+awk2NSUa7QBpCJtlFwEg7rmYurIHl+wB2ifo n5FIxg1hDDATzCHEnm6ZDoL/flVIQ+u0xNesYbQWOewa80vQ0QbBGET/Iu4L9YFDmsh0 607NaeMU5/m5iiAp9RV18ZE/CcgZHNTimsidWY7BbUUoV0wM1Vp/hXeUeVNedNpYtNKi V81KWfoDvMgML5uyy/hu5gBnRCTJhb5ucMV1sIr87fr6TrR2sZx79VmdBQox7vjKeMpp Mvyg== X-Gm-Message-State: ACgBeo0wekJq6J0Kopl15vAMwXJG2QaR8jtDgr5ztpgt7hNRE64MHRx6 /E1jvNUZPeFI+3ur0GVlyJI= X-Received: by 2002:a05:6402:550c:b0:443:7d15:d57f with SMTP id fi12-20020a056402550c00b004437d15d57fmr32044758edb.147.1662112358353; Fri, 02 Sep 2022 02:52:38 -0700 (PDT) Received: from localhost.localdomain (ip-217-105-46-83.ip.prioritytelecom.net. [217.105.46.83]) by smtp.gmail.com with ESMTPSA id h6-20020a170906828600b0073d6234ceebsm959601ejx.160.2022.09.02.02.52.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 02:52:38 -0700 (PDT) From: Nam Cao To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, hdegoede@redhat.com Cc: namcaov@gmail.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 06/10] staging: rtl8723bs: remove GetHexValueFromString Date: Fri, 2 Sep 2022 11:51:56 +0200 Message-Id: <74c77a5d86570065a5fe96446063595b649f76b0.1662111798.git.namcaov@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 Remove function GetHexValueFromString because it is not used. Signed-off-by: Nam Cao --- drivers/staging/rtl8723bs/hal/hal_com.c | 45 --------------------- drivers/staging/rtl8723bs/include/hal_com.h | 2 - 2 files changed, 47 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index 1c744d0b4742..010a097c3afd 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -894,51 +894,6 @@ u32 MapCharToHexDigit(char chTmp) return 0; } - - -/* Description: */ -/* Parse hex number from the string pucStr. */ -bool GetHexValueFromString(char *szStr, u32 *pu4bVal, u32 *pu4bMove) -{ - char *szScan = szStr; - - /* Check input parameter. */ - if (!szStr || !pu4bVal || !pu4bMove) - return false; - - /* Initialize output. */ - *pu4bMove = 0; - *pu4bVal = 0; - - /* Skip leading space. */ - while (*szScan != '\0' && (*szScan == ' ' || *szScan == '\t')) { - szScan++; - (*pu4bMove)++; - } - - /* Skip leading '0x' or '0X'. */ - if (*szScan == '0' && (*(szScan+1) == 'x' || *(szScan+1) == 'X')) { - szScan += 2; - (*pu4bMove) += 2; - } - - /* Check if szScan is now pointer to a character for hex digit, */ - /* if not, it means this is not a valid hex number. */ - if (!IsHexDigit(*szScan)) - return false; - - /* Parse each digit. */ - do { - (*pu4bVal) <<= 4; - *pu4bVal += MapCharToHexDigit(*szScan); - - szScan++; - (*pu4bMove)++; - } while (IsHexDigit(*szScan)); - - return true; -} - 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 406fccbcd4b6..76ad979c2a36 100644 --- a/drivers/staging/rtl8723bs/include/hal_com.h +++ b/drivers/staging/rtl8723bs/include/hal_com.h @@ -151,8 +151,6 @@ bool IsHexDigit(char chTmp); u32 MapCharToHexDigit(char chTmp); -bool GetHexValueFromString(char *szStr, u32 *pu4bVal, u32 *pu4bMove); - bool ParseQualifiedString(char *In, u32 *Start, char *Out, char LeftQualifier, char RightQualifier); -- 2.25.1