wrong comparison with None

This commit is contained in:
Gustavo Moreira
2021-12-10 13:10:47 +11:00
parent 8e7aff4ad8
commit e1942976bf
2 changed files with 3 additions and 3 deletions
@@ -152,7 +152,7 @@ class Check_syscall(plugins.PluginInterface):
except exceptions.SymbolError:
ia32_symbol = None
if ia32_symbol != None:
if ia32_symbol is not None:
ia32_info = self._get_table_info(vmlinux, "ia32_sys_call_table", ptr_sz)
tables.append(("32bit", ia32_info))
@@ -84,7 +84,7 @@ class MMVAD_SHORT(objects.StructType):
if tag in ["VadS", "VadF"]:
target = "_MMVAD_SHORT"
elif tag != None and tag.startswith("Vad"):
elif tag is not None and tag.startswith("Vad"):
target = "_MMVAD"
elif depth == 0:
# the root node at depth 0 is allowed to not have a tag
@@ -651,7 +651,7 @@ class EPROCESS(generic.GenericIntelProcess, pool.ExecutiveObject):
except AttributeError:
return False
return value != 0 and value != None
return not value
def get_vad_root(self):