Skip to content

Commit 37af7d2

Browse files
committed
Janitorial fix format
1 parent 77c0d13 commit 37af7d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pythonbpf/allocation_pass.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ def handle_assign_allocation(builder, stmt, local_sym_tab, structs_sym_tab):
6565
if var_name in local_sym_tab:
6666
logger.debug(f"Variable {var_name} already allocated, skipping")
6767
continue
68-
68+
6969
# When allocating a variable, check if it's a vmlinux struct type
70-
if isinstance(stmt.value, ast.Name) and VmlinuxHandlerRegistry.is_vmlinux_struct(
71-
stmt.value.id
72-
):
70+
if isinstance(
71+
stmt.value, ast.Name
72+
) and VmlinuxHandlerRegistry.is_vmlinux_struct(stmt.value.id):
7373
# Handle vmlinux struct allocation
7474
# This requires more implementation
7575
print(stmt.value)
@@ -95,6 +95,7 @@ def handle_assign_allocation(builder, stmt, local_sym_tab, structs_sym_tab):
9595
f"Unsupported assignment value type for {var_name}: {type(rval).__name__}"
9696
)
9797

98+
9899
def _allocate_for_call(builder, var_name, rval, local_sym_tab, structs_sym_tab):
99100
"""Allocate memory for variable assigned from a call."""
100101

0 commit comments

Comments
 (0)