mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 06:34:17 +08:00
staging: vt6655: fix LONG_LINE warning
This patch will fix LONG_LINE error from checkpatch, by using ternary operator. Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz> Link: https://lore.kernel.org/r/1588520570-14388-3-git-send-email-mdujava@kocurkovo.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3fc29573cf
commit
0729bb9b2a
@ -170,10 +170,14 @@ s_uGetTxRsvTime(
|
||||
if (!bNeedAck)
|
||||
return uDataTime;
|
||||
|
||||
if (byPktType == PK_TYPE_11B) /* llb,CCK mode */
|
||||
uAckTime = bb_get_frame_time(pDevice->byPreambleType, byPktType, 14, (unsigned short)pDevice->byTopCCKBasicRate);
|
||||
else /* 11g 2.4G OFDM mode & 11a 5G OFDM mode */
|
||||
uAckTime = bb_get_frame_time(pDevice->byPreambleType, byPktType, 14, (unsigned short)pDevice->byTopOFDMBasicRate);
|
||||
/*
|
||||
* CCK mode - 11b
|
||||
* OFDM mode - 11g 2.4G & 11a 5G
|
||||
*/
|
||||
uAckTime = bb_get_frame_time(pDevice->byPreambleType, byPktType, 14,
|
||||
byPktType == PK_TYPE_11B ?
|
||||
pDevice->byTopCCKBasicRate :
|
||||
pDevice->byTopOFDMBasicRate);
|
||||
|
||||
return uDataTime + pDevice->uSIFS + uAckTime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user