NetworkPkg: Removing or adding some ASSERT statement
Refine the code by removing or adding some ASSERT statement to make the code more readable. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19592 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -462,6 +462,8 @@ Dns4HostNameToIp (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
ASSERT (Packet != NULL);
|
||||
|
||||
//
|
||||
// Save the token into the Dns4TxTokens map.
|
||||
//
|
||||
@ -635,6 +637,8 @@ Dns4GeneralLookUp (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
ASSERT (Packet != NULL);
|
||||
|
||||
//
|
||||
// Save the token into the Dns4TxTokens map.
|
||||
//
|
||||
@ -1231,6 +1235,8 @@ Dns6HostNameToIp (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
ASSERT (Packet != NULL);
|
||||
|
||||
//
|
||||
// Save the token into the Dns6TxTokens map.
|
||||
//
|
||||
@ -1404,6 +1410,8 @@ Dns6GeneralLookUp (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
ASSERT (Packet != NULL);
|
||||
|
||||
//
|
||||
// Save the token into the Dns6TxTokens map.
|
||||
//
|
||||
|
Reference in New Issue
Block a user