mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
staging: rtl8723bs: ParseQualifiedString() is not used
The function ParseQualifiedString() is not used anywhere, remove it. Signed-off-by: Michael Straube <straube.linux@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20230310083449.23775-3-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
78c0fb1ad6
commit
e65df7f096
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user