]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/DnsDxe: Remove unnecessary NULL pointer check.
authorJiaxin Wu <Jiaxin.wu@intel.com>
Wed, 16 Jan 2019 02:56:19 +0000 (10:56 +0800)
committerJiaxin Wu <Jiaxin.wu@intel.com>
Wed, 23 Jan 2019 00:46:50 +0000 (08:46 +0800)
commit62a623debd9f7d40823ac1851939f6ee9255382c
treef8e0d2b2f41959605677a5ee3572cffed3e5dcf1
parentaf82ca4560a5c2ef4286bad767cab3cfe7c115dd
NetworkPkg/DnsDxe: Remove unnecessary NULL pointer check.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1469

Since the value of ItemCache4/ItemCache6 is retrieved from the list
Entry, it can't be the NULL pointer, so just remove the unnecessary
check.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Hao A <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Wu Hao A <hao.a.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/DnsDxe/DnsDriver.c