Commit ecc11b42 authored by Simran Singhal's avatar Simran Singhal Committed by Greg Kroah-Hartman

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: default avatarSimran Singhal <singhalsimran0@gmail.com>
Link: https://lore.kernel.org/r/20200325214312.GA1936@simran-Inspiron-5558Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b590af9
...@@ -1498,9 +1498,7 @@ s8 PHY_GetTxPowerByRate( ...@@ -1498,9 +1498,7 @@ s8 PHY_GetTxPowerByRate(
return value; return value;
} }
value = pHalData->TxPwrByRateOffset[Band][RFPath][TxNum][rateIndex]; return pHalData->TxPwrByRateOffset[Band][RFPath][TxNum][rateIndex];
return value;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment