diff options
| author | Jakub Kicinski <[email protected]> | 2018-06-20 18:42:45 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-06-21 21:07:12 +0000 |
| commit | 957f9a13df6c70aac31a1dade5e417c286d6d258 (patch) | |
| tree | 407c66bf0df05519bb6f4daaf1a68bd6335e62ab /drivers/net/xen-netback/interface.c | |
| parent | selftests: net: add tcp_inq to gitignore (diff) | |
| download | kernel-957f9a13df6c70aac31a1dade5e417c286d6d258.tar.gz kernel-957f9a13df6c70aac31a1dade5e417c286d6d258.zip | |
tools: bpftool: remove duplicated error message on prog load
do_pin_fd() will already print out an error message if something
goes wrong. Printing another error is unnecessary and will break
JSON output, since error messages are full objects:
$ bpftool -jp prog load tracex1_kern.o /sys/fs/bpf/a
{
"error": "can't pin the object (/sys/fs/bpf/a): File exists"
},{
"error": "failed to pin program"
}
Fixes: 49a086c201a9 ("bpftool: implement prog load command")
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
