Skip to content

Commit 99d7ef1

Browse files
committed
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/[email protected] Signed-off-by: Eric W. Biederman <[email protected]>
1 parent 501c887 commit 99d7ef1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/staging/rtl8712/osdep_service.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ struct __queue {
3737

3838
#define _pkt struct sk_buff
3939
#define _buffer unsigned char
40-
#define thread_exit() complete_and_exit(NULL, 0)
4140

4241
#define _init_queue(pqueue) \
4342
do { \

drivers/staging/rtl8712/rtl8712_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ int r8712_cmd_thread(void *context)
393393
r8712_free_cmd_obj(pcmd);
394394
} while (1);
395395
complete(&pcmdpriv->terminate_cmdthread_comp);
396-
thread_exit();
396+
return 0;
397397
}
398398

399399
void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf)

0 commit comments

Comments
 (0)