diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:14:12 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:57 +0200 |
commit | 052d7c31d856376b18243d47afdc8f43254d0765 (patch) | |
tree | c164b58297b67b63a7340a8d10b13c3fa1da7ee3 /MdeModulePkg/Universal | |
parent | b643f29c511d1c899e686c291f8418dc0d3bba27 (diff) | |
download | edk2-platforms-052d7c31d856376b18243d47afdc8f43254d0765.tar.xz |
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>
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c index b984ac069e..0eec8f07b9 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c @@ -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) {
|