Commit 176735b4 authored by Martin Kaiser's avatar Martin Kaiser Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: remove unused timer functions



rtw_get_passing_time_ms and rtw_systime_to_ms are not used any more.
Remove them.

Signed-off-by: default avatarMartin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220413193654.258507-9-martin@kaiser.cx


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0a347be
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -77,9 +77,6 @@ void *rtw_malloc2d(int h, int w, int size);
		spin_lock_init(&((q)->lock));			\
	} while (0)

u32  rtw_systime_to_ms(u32 systime);
s32  rtw_get_passing_time_ms(u32 start);

void rtw_usleep_os(int us);

static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
+0 −11
Original line number Diff line number Diff line
@@ -42,17 +42,6 @@ Otherwise, there will be racing condition.
Caller must check if the list is empty before calling rtw_list_delete
*/

inline u32 rtw_systime_to_ms(u32 systime)
{
	return systime * 1000 / HZ;
}

/*  the input parameter start use the same unit as jiffies */
inline s32 rtw_get_passing_time_ms(u32 start)
{
	return rtw_systime_to_ms(jiffies - start);
}

void rtw_usleep_os(int us)
{
	if (1 < (us / 1000))