mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/Tcp4Dxe: rebase to ARRAY_SIZE()
Cc: Feng Tian <feng.tian@intel.com> Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Feng Tian <feng.tian@Intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
b643f29c51
commit
052d7c31d8
|
@ -754,7 +754,7 @@ SEND_AGAIN:
|
|||
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