Skip to content

Commit 0fdc0c4

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

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

drivers/staging/r8188eu/core/rtw_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ int rtw_cmd_thread(void *context)
347347

348348
up(&pcmdpriv->terminate_cmdthread_sema);
349349

350-
thread_exit();
350+
return 0;
351351
}
352352

353353
u8 rtw_setstandby_cmd(struct adapter *padapter, uint action)

drivers/staging/r8188eu/core/rtw_mp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static int mp_xmit_packet_thread(void *context)
580580
pmptx->pallocated_buf = NULL;
581581
pmptx->stop = 1;
582582

583-
thread_exit();
583+
return 0;
584584
}
585585

586586
void fill_txdesc_for_mp(struct adapter *padapter, struct tx_desc *ptxdesc)

drivers/staging/r8188eu/include/osdep_service.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ struct __queue {
4949
spinlock_t lock;
5050
};
5151

52-
#define thread_exit() complete_and_exit(NULL, 0)
53-
5452
static inline struct list_head *get_list_head(struct __queue *queue)
5553
{
5654
return (&(queue->queue));

0 commit comments

Comments
 (0)