mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02: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:
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];
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user