summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Application
diff options
context:
space:
mode:
authorXu, Wei6 <wei6.xu@intel.com>2019-08-13 18:53:17 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-08-15 09:10:13 +0800
commit34651e7d769f5b40527a577e8917f3b1efebbcf4 (patch)
tree59b8294494fc6aee9a12579afb93bb9111b49820 /MdeModulePkg/Application
parent08a54c9e0a3db85d6a9fa7f418a914ea978fecc7 (diff)
downloadedk2-34651e7d769f5b40527a577e8917f3b1efebbcf4.tar.gz
edk2-34651e7d769f5b40527a577e8917f3b1efebbcf4.tar.bz2
edk2-34651e7d769f5b40527a577e8917f3b1efebbcf4.zip
MdeModulePkg/CapsuleApp: Improve comparisons in CapsuleOnDisk.c
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2028 Non-Boolean comparisons should use a compare operator (==, !=, >, < >=, <=). Signed-off-by: Wei6 Xu <wei6.xu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Application')
-rw-r--r--MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c b/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c
index 382efa9aa0..b161d1a981 100644
--- a/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c
+++ b/MdeModulePkg/Application/CapsuleApp/CapsuleOnDisk.c
@@ -744,7 +744,7 @@ IsCapsuleOnDiskSupported (
return FALSE;
}
- if (OsIndicationsSupported & EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED) {
+ if ((OsIndicationsSupported & EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED) != 0) {
return TRUE;
}