mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
bpf: remove redeclaration of new_n in bpf_verifier_vlog
This new_n is defined in the start of this function. Its value is overwritten by `new_n = min(n, log->len_total);` a couple lines before my change, rendering the shadow declaration unnecessary. Signed-off-by: Rafael Passos <rafael@rcpassos.me> Link: https://lore.kernel.org/r/20240615022641.210320-4-rafael@rcpassos.me Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
ab224b9ef7
commit
21ab4980e0
@ -91,7 +91,7 @@ void bpf_verifier_vlog(struct bpf_verifier_log *log, const char *fmt,
|
||||
goto fail;
|
||||
} else {
|
||||
u64 new_end, new_start;
|
||||
u32 buf_start, buf_end, new_n;
|
||||
u32 buf_start, buf_end;
|
||||
|
||||
new_end = log->end_pos + n;
|
||||
if (new_end - log->start_pos >= log->len_total)
|
||||
|
Loading…
Reference in New Issue
Block a user