mirror of https://github.com/acidanthera/audk.git
NetworkPkg/TcpDxe: rebase to ARRAY_SIZE()
Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f256ab43ea
commit
e72b409784
|
@ -797,7 +797,7 @@ TcpToSendData (
|
|||
Len = TcpDataToSend (Tcb, Force);
|
||||
Seq = Tcb->SndNxt;
|
||||
|
||||
ASSERT ((Tcb->State) < (sizeof (mTcpOutFlag) / sizeof (mTcpOutFlag[0])));
|
||||
ASSERT ((Tcb->State) < (ARRAY_SIZE (mTcpOutFlag)));
|
||||
Flag = mTcpOutFlag[Tcb->State];
|
||||
|
||||
if ((Flag & TCP_FLG_SYN) != 0) {
|
||||
|
|
Loading…
Reference in New Issue