aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorDavid Miller <[email protected]>2018-11-26 21:42:41 +0000
committerDaniel Borkmann <[email protected]>2018-11-26 22:10:27 +0000
commitd8f3e978bd30014081c599456285ca1d58c2aae1 (patch)
tree16031a2c1fc047a49c38fb4a3024e9cc3797e1eb /tools/bpf/bpftool/prog.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff)
downloadkernel-d8f3e978bd30014081c599456285ca1d58c2aae1.tar.gz
kernel-d8f3e978bd30014081c599456285ca1d58c2aae1.zip
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: David S. Miller <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions