Simplify 5.17 patch

This commit is contained in:
Carlos Garcés
2022-04-06 12:33:58 +02:00
parent e0f967cea1
commit 352330be93
5 changed files with 4 additions and 51 deletions

View File

@@ -872,20 +872,13 @@ u32 _rtw_down_sema(_sema *sema)
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
inline void thread_exit(_completion *comp)
#else
inline void kthread_thread_exit(_completion *comp)
#endif
{
#ifdef PLATFORM_LINUX
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
complete_and_exit(comp, 0);
#else
kthread_complete_and_exit(comp, 0);
#endif
#endif
}
inline void _rtw_init_completion(_completion *comp)