mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 15:23:53 +00:00
Remove wrapper around do_div
Wrapper routine rtw_modular64() contains only a call to do_div() and is used once in the code. Remove the wrapper. Link: https://lore.kernel.org/r/20210803135223.12543-9-Larry.Finger@lwfinger.net
This commit is contained in:
committed by
Carlos Garcés
parent
d7c3737cd5
commit
4d3d23dd24
@@ -2433,25 +2433,6 @@ void module_init_exit_wrapper(void *arg)
|
||||
}
|
||||
|
||||
#endif /* PLATFORM_FREEBSD */
|
||||
|
||||
#ifdef CONFIG_PLATFORM_SPRD
|
||||
#ifdef do_div
|
||||
#undef do_div
|
||||
#endif
|
||||
#include <asm-generic/div64.h>
|
||||
#endif
|
||||
|
||||
u64 rtw_modular64(u64 x, u64 y)
|
||||
{
|
||||
#ifdef PLATFORM_LINUX
|
||||
return do_div(x, y);
|
||||
#elif defined(PLATFORM_WINDOWS)
|
||||
return x % y;
|
||||
#elif defined(PLATFORM_FREEBSD)
|
||||
return x % y;
|
||||
#endif
|
||||
}
|
||||
|
||||
u64 rtw_division64(u64 x, u64 y)
|
||||
{
|
||||
#ifdef PLATFORM_LINUX
|
||||
|
||||
Reference in New Issue
Block a user