Skip to content

Commit f96a6b9

Browse files
committed
Remove useless args from handle_return
1 parent e9f3aa2 commit f96a6b9

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pythonbpf/functions/functions_pass.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,7 @@ def handle_if(
351351
builder.position_at_end(merge_block)
352352

353353

354-
def handle_return(
355-
func, module, builder, stmt, map_sym_tab, local_sym_tab, struct_sym_tab, ret_type
356-
):
354+
def handle_return(builder, stmt, local_sym_tab, ret_type):
357355
if stmt.value is None:
358356
builder.ret(ir.Constant(ir.IntType(64), 0))
359357
return True
@@ -444,13 +442,9 @@ def process_stmt(
444442
)
445443
elif isinstance(stmt, ast.Return):
446444
did_return = handle_return(
447-
func,
448-
module,
449445
builder,
450446
stmt,
451-
map_sym_tab,
452447
local_sym_tab,
453-
structs_sym_tab,
454448
ret_type,
455449
)
456450
return did_return

pythonbpf/functions/return_utils.py

Whitespace-only changes.

0 commit comments

Comments
 (0)