mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-26 11:40:24 +02:00
bpf: Delete unused variable
'cnt' is set, but not used. Delete it.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604111401.eqzyF2kx-lkp@intel.com/
Fixes: 2c167d9177 ("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 <ast@kernel.org>
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user