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

The macro 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 cmd_thread return instead of calling complete_and_exit.

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

+1 -2
-1
drivers/staging/rtl8712/osdep_service.h
··· 37 37 38 38 #define _pkt struct sk_buff 39 39 #define _buffer unsigned char 40 - #define thread_exit() complete_and_exit(NULL, 0) 41 40 42 41 #define _init_queue(pqueue) \ 43 42 do { \
+1 -1
drivers/staging/rtl8712/rtl8712_cmd.c
··· 393 393 r8712_free_cmd_obj(pcmd); 394 394 } while (1); 395 395 complete(&pcmdpriv->terminate_cmdthread_comp); 396 - thread_exit(); 396 + return 0; 397 397 } 398 398 399 399 void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf)