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:
Laszlo Ersek 2016-10-26 19:18:00 +02:00
parent f256ab43ea
commit e72b409784
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ TcpToSendData (
Len = TcpDataToSend (Tcb, Force); Len = TcpDataToSend (Tcb, Force);
Seq = Tcb->SndNxt; Seq = Tcb->SndNxt;
ASSERT ((Tcb->State) < (sizeof (mTcpOutFlag) / sizeof (mTcpOutFlag[0]))); ASSERT ((Tcb->State) < (ARRAY_SIZE (mTcpOutFlag)));
Flag = mTcpOutFlag[Tcb->State]; Flag = mTcpOutFlag[Tcb->State];
if ((Flag & TCP_FLG_SYN) != 0) { if ((Flag & TCP_FLG_SYN) != 0) {