BaseTools: fix None comparisons
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / GenC.py
index c11bbc5716f927e9ee22926a4953099fffe494da..6706629722fcc7581054059becaa7cd39baf498d 100644 (file)
@@ -1540,7 +1540,7 @@ def CreateModuleEntryPointCode(Info, AutoGenC, AutoGenH):
     }\r
 \r
     if Info.ModuleType in ['PEI_CORE', 'DXE_CORE', 'SMM_CORE', 'MM_CORE_STANDALONE']:\r
-        if Info.SourceFileList <> None and Info.SourceFileList <> []:\r
+        if Info.SourceFileList:\r
           if NumEntryPoints != 1:\r
               EdkLogger.error(\r
                   "build",\r