public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Jiaxin Wu <Jiaxin.wu@intel.com>
To: edk2-devel@lists.01.org
Cc: Ye Ting <ting.ye@intel.com>, Fu Siyuan <siyuan.fu@intel.com>,
	Wu Hao A <hao.a.wu@intel.com>, Gao Liming <liming.gao@intel.com>,
	Wu
Subject: [PATCH v1 0/3] Remove unnecessary NULL pointer check.
Date: Thu, 17 Jan 2019 09:00:45 +0800	[thread overview]
Message-ID: <20190117010048.19020-1-Jiaxin.wu@intel.com> (raw)

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

Since the value retrieved from the list Entry can't be the NULL
pointer, the unnecessary check can be removed.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Hao A <hao.a.wu@intel.com>
Cc: Gao Liming <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com

Jiaxin Wu (3):
  MdeModulePkg/Dhcp4Dxe: Remove unnecessary NULL pointer check.
  NetworkPkg/IScsiDxe: Remove unnecessary NULL pointer check.
  NetworkPkg/DnsDxe: Remove unnecessary NULL pointer check.

 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c      | 15 +++++--------
 NetworkPkg/DnsDxe/DnsDriver.c                 | 22 ++++++++-----------
 NetworkPkg/IScsiDxe/IScsiConfig.c             |  6 +----
 3 files changed, 16 insertions(+), 27 deletions(-)

-- 
2.17.1.windows.2



             reply	other threads:[~2019-01-17  1:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17  1:00 Jiaxin Wu [this message]
2019-01-17  1:00 ` [PATCH v1 1/3] MdeModulePkg/Dhcp4Dxe: Remove unnecessary NULL pointer check Jiaxin Wu
2019-01-18  1:59   ` Fu, Siyuan
2019-01-18  2:17     ` Wu, Jiaxin
2019-01-17  1:00 ` [PATCH v1 2/3] NetworkPkg/IScsiDxe: " Jiaxin Wu
2019-01-17  1:00 ` [PATCH v1 3/3] NetworkPkg/DnsDxe: " Jiaxin Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190117010048.19020-1-Jiaxin.wu@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox