]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c98d19a85708877da02f1e430a45c362acf9a35
tree7ac7c157733f48f701c2038ae19fc309a1983e0e
parentba47773a0a73823a4fee4645bf8cc986a1ed36f2
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