staging: r8188eu: remove unused timer functions
authorMartin Kaiser <martin@kaiser.cx>
Wed, 13 Apr 2022 19:36:54 +0000 (21:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Apr 2022 07:06:59 +0000 (09:06 +0200)
rtw_get_passing_time_ms and rtw_systime_to_ms are not used any more.
Remove them.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220413193654.258507-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/osdep_service.h
drivers/staging/r8188eu/os_dep/osdep_service.c

index 1e55a8008acc30337c49af4b32ce9a12fced4b06..f1a703643e741b9e63778d0ee893da65e3495d04 100644 (file)
@@ -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)
index 7b177d50eee2f2f8753aa8cf657c7e9aebd7593f..812acd59be7968f4af35e7f535c97d8212ab1656 100644 (file)
@@ -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))