Skip to content

Commit 1651ecb

Browse files
committed
linux: boottime api: Fix explicit returns mixed with implicit (fall through) returns
1 parent d25df23 commit 1651ecb

File tree

1 file changed

+2
-2
lines changed
  • volatility3/framework/symbols/linux/extensions

1 file changed

+2
-2
lines changed

volatility3/framework/symbols/linux/extensions/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def get_time_namespace_id(self) -> int:
424424
time_ns = self.get_time_namespace()
425425
if not time_ns:
426426
# kernels < 5.6
427-
return
427+
return None
428428

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

442442
if not time_ns.has_member("offsets"):
443443
# kernels < 5.6 af993f58d69ee9c1f421dfc87c3ed231c113989c

0 commit comments

Comments
 (0)