Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 21ab4980 authored by Rafael Passos's avatar Rafael Passos Committed by Alexei Starovoitov
Browse files

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: default avatarRafael Passos <rafael@rcpassos.me>
Link: https://lore.kernel.org/r/20240615022641.210320-4-rafael@rcpassos.me


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent ab224b9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment