mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 10:35:54 -04:00
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:
committed by
Greg Kroah-Hartman
parent
1b590af9fa
commit
ecc11b42c7
@@ -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];
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user