From 1595da78dc3c9f29cc4e4b7d47aa32bc830454fb Mon Sep 17 00:00:00 2001 From: I Hsin Cheng Date: Fri, 5 Jul 2024 01:04:49 +0800 Subject: [PATCH] scx_rustland_core: Remove unused variable Remove unused variable "tctx" in rustland_select_cpu. Signed-off-by: I Hsin Cheng --- rust/scx_rustland_core/assets/bpf/main.bpf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/scx_rustland_core/assets/bpf/main.bpf.c b/rust/scx_rustland_core/assets/bpf/main.bpf.c index d423abb..f64e781 100644 --- a/rust/scx_rustland_core/assets/bpf/main.bpf.c +++ b/rust/scx_rustland_core/assets/bpf/main.bpf.c @@ -523,7 +523,6 @@ dispatch_direct_cpu(struct task_struct *p, s32 cpu, u64 slice_ns, u64 enq_flags) s32 BPF_STRUCT_OPS(rustland_select_cpu, struct task_struct *p, s32 prev_cpu, u64 wake_flags) { - struct task_ctx *tctx; s32 cpu = prev_cpu; bool do_direct = false;