diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:18:00 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:58 +0200 |
commit | e72b40978442032cbeab7c04acb79bfa6292f597 (patch) | |
tree | c360a125e491c4441db460de5a38fcbfcaff751e /NetworkPkg/TcpDxe | |
parent | f256ab43eaaa0e28204b55256699fe07120e2244 (diff) | |
download | edk2-e72b40978442032cbeab7c04acb79bfa6292f597.zip edk2-e72b40978442032cbeab7c04acb79bfa6292f597.tar.gz edk2-e72b40978442032cbeab7c04acb79bfa6292f597.tar.bz2 |
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>
Diffstat (limited to 'NetworkPkg/TcpDxe')
-rw-r--r-- | NetworkPkg/TcpDxe/TcpOutput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/TcpDxe/TcpOutput.c b/NetworkPkg/TcpDxe/TcpOutput.c index 91e56d3..a46cb60 100644 --- a/NetworkPkg/TcpDxe/TcpOutput.c +++ b/NetworkPkg/TcpDxe/TcpOutput.c @@ -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) {
|