Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

exit/rtl8723bs: Replace the macro thread_exit with a simple return 0

Every place thread_exit is called is at the end of a function started
with kthread_run. The code in kthread_run has arranged things so a
kernel thread can just return and do_exit will be called.

So just have the threads return instead of calling complete_and_exit.

Link: https://lkml.kernel.org/r/20211020174406.17889-18-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>

+3 -5
+1 -1
drivers/staging/rtl8723bs/core/rtw_cmd.c
··· 524 524 complete(&pcmdpriv->terminate_cmdthread_comp); 525 525 atomic_set(&(pcmdpriv->cmdthd_running), false); 526 526 527 - thread_exit(); 527 + return 0; 528 528 } 529 529 530 530 /*
+1 -1
drivers/staging/rtl8723bs/core/rtw_xmit.c
··· 2491 2491 2492 2492 complete(&padapter->xmitpriv.terminate_xmitthread_comp); 2493 2493 2494 - thread_exit(); 2494 + return 0; 2495 2495 } 2496 2496 2497 2497 void rtw_sctx_init(struct submit_ctx *sctx, int timeout_ms)
+1 -1
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
··· 435 435 436 436 complete(&pxmitpriv->SdioXmitTerminate); 437 437 438 - thread_exit(); 438 + return 0; 439 439 } 440 440 441 441 s32 rtl8723bs_mgnt_xmit(
-2
drivers/staging/rtl8723bs/include/osdep_service_linux.h
··· 45 45 spinlock_t lock; 46 46 }; 47 47 48 - #define thread_exit() complete_and_exit(NULL, 0) 49 - 50 48 static inline struct list_head *get_next(struct list_head *list) 51 49 { 52 50 return list->next;