Skip to content

Commit

Permalink
linux: boottime api: Fix explicit returns mixed with implicit (fall t…
Browse files Browse the repository at this point in the history
…hrough) returns
  • Loading branch information
gcmoreira committed Oct 18, 2024
1 parent d25df23 commit 1651ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volatility3/framework/symbols/linux/extensions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def get_time_namespace_id(self) -> int:
time_ns = self.get_time_namespace()
if not time_ns:
# kernels < 5.6
return
return None

# We are good. ns_common (ns) was introduced in kernels 3.19. So by the time the
# time namespace was added in kernels 5.6, it already included the ns member.
Expand All @@ -437,7 +437,7 @@ def _get_time_namespace_offsets(
time_ns = self.get_time_namespace()
if not time_ns:
# kernels < 5.6
return
return None

if not time_ns.has_member("offsets"):
# kernels < 5.6 af993f58d69ee9c1f421dfc87c3ed231c113989c
Expand Down

0 comments on commit 1651ecb

Please sign in to comment.