]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/GenFds/Vtf.py
BaseTools: remove redundant if comparison
[mirror_edk2.git] / BaseTools / Source / Python / GenFds / Vtf.py
index 06e3d275c381da60d3520cdd2b45ccd5ebef1568..18ea37b9afdd72312e0043707165a1413e32e25c 100644 (file)
@@ -68,7 +68,7 @@ class Vtf (VtfClassObject):
         FvList = self.GetFvList()\r
         self.BsfInfName = os.path.join(GenFdsGlobalVariable.FvDir, self.UiName + '.inf')\r
         BsfInf = open(self.BsfInfName, 'w+')\r
-        if self.ResetBin != None:\r
+        if self.ResetBin is not None:\r
             BsfInf.writelines ("[OPTIONS]" + T_CHAR_LF)\r
             BsfInf.writelines ("IA32_RST_BIN" + \\r
                                " = " + \\r
@@ -89,7 +89,7 @@ class Vtf (VtfClassObject):
                                    'N' + \\r
                                    T_CHAR_LF)\r
 \r
-            elif ComponentObj.FilePos != None:\r
+            elif ComponentObj.FilePos is not None:\r
                 BsfInf.writelines ("COMP_LOC" + \\r
                                    " = " + \\r
                                    ComponentObj.FilePos + \\r