Staging: vt6655: Limit return statements.
Limit return statements within context of switch case to improve readability. Signed-off-by: Briana Oursler <briana.oursler@gmail.com> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Link: https://lore.kernel.org/r/fe417533b66d29ef6ea19128b38b8c8de7757ae2.1585763457.git.briana.oursler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6f5ec72252
commit
5b0578364f
|
@ -263,12 +263,9 @@ s_uGetDataDuration(
|
|||
else
|
||||
uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRate, bNeedAck);
|
||||
|
||||
if (bNeedAck) {
|
||||
if (bNeedAck)
|
||||
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
|
||||
return pDevice->uSIFS + uAckTime + uNextPktTime;
|
||||
} else {
|
||||
return pDevice->uSIFS + uNextPktTime;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -286,12 +283,9 @@ s_uGetDataDuration(
|
|||
else
|
||||
uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRate, bNeedAck);
|
||||
|
||||
if (bNeedAck) {
|
||||
if (bNeedAck)
|
||||
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
|
||||
return pDevice->uSIFS + uAckTime + uNextPktTime;
|
||||
} else {
|
||||
return pDevice->uSIFS + uNextPktTime;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -327,12 +321,9 @@ s_uGetDataDuration(
|
|||
uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wFB_Opt1[FB_RATE0][wRate-RATE_18M], bNeedAck);
|
||||
}
|
||||
|
||||
if (bNeedAck) {
|
||||
if (bNeedAck)
|
||||
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
|
||||
return pDevice->uSIFS + uAckTime + uNextPktTime;
|
||||
} else {
|
||||
return pDevice->uSIFS + uNextPktTime;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -367,12 +358,10 @@ s_uGetDataDuration(
|
|||
else
|
||||
uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wFB_Opt1[FB_RATE1][wRate-RATE_18M], bNeedAck);
|
||||
}
|
||||
if (bNeedAck) {
|
||||
|
||||
if (bNeedAck)
|
||||
uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
|
||||
return pDevice->uSIFS + uAckTime + uNextPktTime;
|
||||
} else {
|
||||
return pDevice->uSIFS + uNextPktTime;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue