From 926be9d10cab8f841af5d5b619eb11e8a7a19af9 Mon Sep 17 00:00:00 2001 From: Qiu Shumin Date: Wed, 17 Sep 2014 07:48:27 +0000 Subject: [PATCH] ShellPkg: Use compare operator for non-Boolean comparisons. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16120 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c index a0cb2da0fe..28f05eb1de 100644 --- a/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c +++ b/ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c @@ -1503,7 +1503,7 @@ BcfgLibraryRegisterBcfgCommand ( IN CONST CHAR16 *Name ) { - if (gShellBcfgHiiHandle) { + if (gShellBcfgHiiHandle != NULL) { return (EFI_SUCCESS); } -- 2.39.2