Skip to content

Commit 0bfb385

Browse files
committed
Remove dead code from _handle_ctypes_call
1 parent 2f0dd20 commit 0bfb385

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pythonbpf/expr_pass.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ def _handle_ctypes_call(
119119
return None
120120
call_type = expr.func.id
121121
expected_type = ctypes_to_ir(call_type)
122-
if expected_type is None:
123-
logger.info(f"Unsupported ctypes type: {call_type}")
124-
return None
122+
125123
if val[1] != expected_type:
126124
# NOTE: We are only considering casting to and from int types for now
127125
if isinstance(val[1], ir.IntType) and isinstance(expected_type, ir.IntType):

0 commit comments

Comments
 (0)