From 89799ec9545164738ac448175c028f76de42a737 Mon Sep 17 00:00:00 2001 From: czhang46 Date: Thu, 13 Sep 2012 11:28:27 +0000 Subject: [PATCH] Fix coding style issue Signed-off-by : Chao Zhang Reviewed-by : Guo Dong git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13730 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DxeImageAuthenticationStatusLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c b/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c index 9d3103639c..bc1acd1fed 100644 --- a/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c +++ b/SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.c @@ -44,8 +44,8 @@ DxeImageAuthenticationStatusHandler ( IN BOOLEAN BootPolicy ) { - if (AuthenticationStatus & EFI_AUTH_STATUS_IMAGE_SIGNED) { - if (AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | EFI_AUTH_STATUS_NOT_TESTED)) { + if ((AuthenticationStatus & EFI_AUTH_STATUS_IMAGE_SIGNED) != 0) { + if ((AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | EFI_AUTH_STATUS_NOT_TESTED)) != 0) { return EFI_ACCESS_DENIED; } }