From: Alexei Starovoitov Date: Sat, 11 Apr 2026 14:14:47 +0000 (-0700) Subject: bpf: Delete unused variable X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57205e2dd962d2c0e2093cf9b06dad6ba7737844;p=thirdparty%2Fkernel%2Flinux.git bpf: Delete unused variable 'cnt' is set, but not used. Delete it. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202604111401.eqzyF2kx-lkp@intel.com/ Fixes: 2c167d91775b ("bpf: change logging scheme for live stack analysis") Link: https://lore.kernel.org/r/20260411141447.45932-1-alexei.starovoitov@gmail.com Signed-off-by: Alexei Starovoitov --- diff --git a/kernel/bpf/liveness.c b/kernel/bpf/liveness.c index 9bb6574d73feb..59d990237cbd2 100644 --- a/kernel/bpf/liveness.c +++ b/kernel/bpf/liveness.c @@ -306,7 +306,7 @@ static inline bool update_insn(struct bpf_verifier_env *env, /* Fixed-point computation of @live_before marks */ static void update_instance(struct bpf_verifier_env *env, struct func_instance *instance) { - u32 i, frame, po_start, po_end, cnt; + u32 i, frame, po_start, po_end; int *insn_postorder = env->cfg.insn_postorder; struct bpf_subprog_info *subprog; bool changed; @@ -315,10 +315,8 @@ static void update_instance(struct bpf_verifier_env *env, struct func_instance * subprog = &env->subprog_info[instance->subprog]; po_start = subprog->postorder_start; po_end = (subprog + 1)->postorder_start; - cnt = 0; /* repeat until fixed point is reached */ do { - cnt++; changed = false; for (frame = 0; frame <= instance->depth; frame++) { if (!instance->frames[frame])