staging: keucr: Delete StringCmp() and StringCopy custom functions
staging: keucr: Delete StringCmp() and StringCopy custom functions Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com> Acked-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: Al Cho <acho@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
f3d5049ccd
Коммит
1b9f644dfe
|
@ -1575,25 +1575,6 @@ char Bit_D_CountWord(WORD cdata)
|
|||
return((char)bitcount);
|
||||
}
|
||||
|
||||
void StringCopy(char *stringA, char *stringB, int count)
|
||||
{
|
||||
int i;
|
||||
|
||||
for(i=0; i<count; i++)
|
||||
*stringA++ = *stringB++;
|
||||
}
|
||||
|
||||
//-----
|
||||
int StringCmp(char *stringA, char *stringB, int count)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0;i<count;i++)
|
||||
if (*stringA++ != *stringB++)
|
||||
return(ERROR);
|
||||
|
||||
return(SUCCESS);
|
||||
}
|
||||
/*
|
||||
//----- SM_ReadBlock() ---------------------------------------------
|
||||
int SM_ReadBlock(PFDO_DEVICE_EXTENSION fdoExt, BYTE *buf,BYTE *redundant)
|
||||
|
|
Загрузка…
Ссылка в новой задаче