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/r8188eu: Replace the macro thread_exit with a simple return 0

The macro thread_exit is called is at the end of functions 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 rtw_cmd_thread and mp_xmit_packet_thread return instead
of calling complete_and_exit.

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

+2 -4
+1 -1
drivers/staging/r8188eu/core/rtw_cmd.c
··· 347 347 348 348 up(&pcmdpriv->terminate_cmdthread_sema); 349 349 350 - thread_exit(); 350 + return 0; 351 351 } 352 352 353 353 u8 rtw_setstandby_cmd(struct adapter *padapter, uint action)
+1 -1
drivers/staging/r8188eu/core/rtw_mp.c
··· 580 580 pmptx->pallocated_buf = NULL; 581 581 pmptx->stop = 1; 582 582 583 - thread_exit(); 583 + return 0; 584 584 } 585 585 586 586 void fill_txdesc_for_mp(struct adapter *padapter, struct tx_desc *ptxdesc)
-2
drivers/staging/r8188eu/include/osdep_service.h
··· 49 49 spinlock_t lock; 50 50 }; 51 51 52 - #define thread_exit() complete_and_exit(NULL, 0) 53 - 54 52 static inline struct list_head *get_list_head(struct __queue *queue) 55 53 { 56 54 return (&(queue->queue));