Skip to content
Commit d8f3e978 authored by David Miller's avatar David Miller Committed by Daniel Borkmann
Browse files

bpf: Avoid unnecessary instruction in convert_bpf_ld_abs()



'offset' is constant and if it is zero, no need to subtract it
from BPF_REG_TMP.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 4afe60a9
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