xdp: Simplify __bpf_tx_xdp_map()
authorBjörn Töpel <bjorn.topel@intel.com>
Thu, 19 Dec 2019 06:10:06 +0000 (07:10 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 20 Dec 2019 05:09:43 +0000 (21:09 -0800)
commit1170beaa3fa3c3381fd820e9d05b84d168fe1dab
tree39d15968f69918489e4ade622fc4808575f8edbe
parent332f22a60e4c3492d4953cd6f7aaa4e8bd0bba97
xdp: Simplify __bpf_tx_xdp_map()

The explicit error checking is not needed. Simply return the error
instead.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20191219061006.21980-9-bjorn.topel@gmail.com
net/core/filter.c