From 6fe8308c577234d6c6c28d376439321193a35f5e Mon Sep 17 00:00:00 2001
From: Luis Gerhorst <gerhorst@cs.fau.de>
Date: Thu, 8 Feb 2024 15:07:02 +0100
Subject: [PATCH] [DRAFT,FIX] bpf: Remove unused variables

---
 kernel/bpf/verifier.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 14f783a190c7..86aee0907194 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -11762,9 +11762,6 @@ static int sanitize_err(struct bpf_verifier_env *env,
 			const struct bpf_reg_state *off_reg,
 			const struct bpf_reg_state *dst_reg)
 {
-	static const char *err = "pointer arithmetic with it prohibited for !root";
-	const char *op = BPF_OP(insn->code) == BPF_ADD ? "add" : "sub";
-	u32 dst = insn->dst_reg, src = insn->src_reg;
 	struct bpf_insn_aux_data *aux = cur_aux(env);
 
 	switch (reason) {
-- 
GitLab