]> git.proxmox.com Git - mirror_iproute2.git/commit - lib/bpf.c
bpf: minor cleanups for bpf_trace_pipe
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Sep 2017 00:24:31 +0000 (02:24 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 5 Sep 2017 16:26:34 +0000 (09:26 -0700)
commit1b736dc469dcabd4180848a1f1b3d1fef2b84dbc
tree2ac3270e257d2365a2281c07a4455f75ba448e1a
parentb75e0f6f4b6b29e7bc2f103cbcfa99bef73527a0
bpf: minor cleanups for bpf_trace_pipe

Just minor nits, e.g. no need to fflush() and instead of returning
right away, just break and close the fd.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
lib/bpf.c