staging: rtl8723bs: hal: Compress return logic
authorSimran Singhal <singhalsimran0@gmail.com>
Wed, 25 Mar 2020 21:43:12 +0000 (03:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 07:37:38 +0000 (08:37 +0100)
commitecc11b42c79db41b45fe6f8db46ae8ca54cf126a
tree7ac7c157733f48f701c2038ae19fc309a1983e0e
parent1b590af9fa2d7d8407c4e780eb506d536157d36b
staging: rtl8723bs: hal: Compress return logic

Simplify function returns by merging assignment and return into
one command line.
Found with Coccinelle

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
Link: https://lore.kernel.org/r/20200325214312.GA1936@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c