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>
This commit is contained in:
Simran Singhal 2020-03-26 03:13:12 +05:30 committed by Greg Kroah-Hartman
parent 1b590af9fa
commit ecc11b42c7

View File

@ -1498,9 +1498,7 @@ s8 PHY_GetTxPowerByRate(
return value;
}
value = pHalData->TxPwrByRateOffset[Band][RFPath][TxNum][rateIndex];
return value;
return pHalData->TxPwrByRateOffset[Band][RFPath][TxNum][rateIndex];
}