]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/DxeNetLib/DxeNetLib.c
MdeModulePkg/DxeNetLib: Add parameter check and ASSERT handling.
authorWang Fan <fan.wang@intel.com>
Wed, 3 Jan 2018 02:18:29 +0000 (10:18 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 4 Jan 2018 02:55:14 +0000 (10:55 +0800)
commitcf4a8fa455c63feaffdb0fbc5b7c72729ffbb17f
tree1e7a58ad66b59c9a2a77529b805790aae82140ec
parent2a2f01b9a08d82b9a0de8d893c4c845edaae81b8
MdeModulePkg/DxeNetLib: Add parameter check and ASSERT handling.

* Library API should check the input parameters before use, or
  ASSERT to tell it has to meet some requirements. But in DxeNetLib,
  not all functions follows this rule.
* ASSERT shouldn't be used as error handling, add some handling code
  for errors.
* Add some ASSERT commence in function notes.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
MdeModulePkg/Library/DxeNetLib/DxeNetLib.c