Skip to content

Commit 45d85c4

Browse files
committed
BCC-Examples: Fix returns in disksnoop.py
1 parent cb18ab6 commit 45d85c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BCC-Examples/disksnoop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def trace_completion(ctx: struct_pt_regs) -> c_int64:
2727
print(f"{data_len} {cmd_flags:x} {delta_us}\n")
2828
start.delete(req_ptr)
2929

30-
return c_int64(0)
30+
return 0 # type: ignore [return-value]
3131

3232

3333
@bpf
@@ -36,7 +36,7 @@ def trace_start(ctx1: struct_pt_regs) -> c_int32:
3636
req = ctx1.di
3737
ts = ktime()
3838
start.update(req, ts)
39-
return c_int32(0)
39+
return 0 # type: ignore [return-value]
4040

4141

4242
@bpf

0 commit comments

Comments
 (0)