]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellLib/UefiShellLib.c
ShellPkg: don't call functions with side effects in ASSERT_EFI_ERROR()
authorLaszlo Ersek <lersek@redhat.com>
Tue, 28 Jun 2016 11:52:11 +0000 (13:52 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 30 Jun 2016 15:27:15 +0000 (17:27 +0200)
commit4a7518d31a0254e4065d308f091bd7bc16dc8dba
tree8bcb038b198c79cc0a1b0f5d5800543cf0a684e0
parent74e00be5c0cace9a6556f4bc9b5db70efb1d869e
ShellPkg: don't call functions with side effects in ASSERT_EFI_ERROR()

When ASSERT_EFI_ERROR() is compiled out, dependent on build flags, only
the status checking should be removed; the function calls should stay.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Shumin Qiu <shumin.qiu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellLevel1CommandsLib/If.c
ShellPkg/Library/UefiShellLib/UefiShellLib.c