]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg/SmmTcg2PhysicalPresenceLib: Fix coding style issue
authorDandan Bi <dandan.bi@intel.com>
Wed, 7 Mar 2018 05:24:37 +0000 (13:24 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 8 Mar 2018 00:58:49 +0000 (08:58 +0800)
Boolean values do not need to use explicit comparisons
to TRUE or FALSE.

Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by:Chao Zhang <chao.b.zhang@intel.com>

SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.c

index dfef6c8ca0c8a2e9b1a9894daefe2b628d8e97fe..6a4dce919845c47f6f53c1b497c7b2ca691899b2 100644 (file)
@@ -341,7 +341,7 @@ Tcg2PhysicalPresenceLibGetUserConfirmationStatusFunction (
       break;\r
 \r
     default:\r
-      if (mIsTcg2PPVerLowerThan_1_3 == FALSE) {\r
+      if (!mIsTcg2PPVerLowerThan_1_3) {\r
         if (OperationRequest < TCG2_PHYSICAL_PRESENCE_VENDOR_SPECIFIC_OPERATION) {\r
           //\r
           // TCG2 PP1.3 spec defined operations that are reserved or un-implemented\r