exit/rtl8712: Replace the macro thread_exit with a simple return 0
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Oct 2021 17:44:05 +0000 (12:44 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 29 Oct 2021 19:31:34 +0000 (14:31 -0500)
commit99d7ef1e4792de3d8658f967539bdc6df2b03fa4
tree96b8ccd3beecad04094c42d40b4ea0518d4d6517
parent501c88722797a1923145658cce85fb3661121832
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>
drivers/staging/rtl8712/osdep_service.h
drivers/staging/rtl8712/rtl8712_cmd.c