staging: r8188eu: remove rtw_atoi()

Function rtw_atoi() is not used, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210922200420.9693-26-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Michael Straube 2021-09-22 22:03:58 +02:00 committed by Greg Kroah-Hartman
parent 5b3ba50171
commit e66a992586
2 changed files with 0 additions and 19 deletions

View File

@ -155,8 +155,6 @@ s32 rtw_get_passing_time_ms(u32 start);
void rtw_usleep_os(int us);
u32 rtw_atoi(u8 *s);
static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
{
return del_timer_sync(ptimer);

View File

@ -19,23 +19,6 @@ inline int RTW_STATUS_CODE(int error_code)
return _FAIL;
}
u32 rtw_atoi(u8 *s)
{
int num = 0, flag = 0;
int i;
for (i = 0; i <= strlen(s); i++) {
if (s[i] >= '0' && s[i] <= '9')
num = num * 10 + s[i] - '0';
else if (s[0] == '-' && i == 0)
flag = 1;
else
break;
}
if (flag == 1)
num = num * -1;
return num;
}
void *rtw_malloc2d(int h, int w, int size)
{
int j;