tools: bpftool: remove unnecessary 'if' to reduce indentation
authorJiong Wang <jiong.wang@netronome.com>
Fri, 2 Mar 2018 02:01:16 +0000 (18:01 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 2 Mar 2018 02:29:48 +0000 (18:29 -0800)
commit3197239d24dcecef1dbc260733b377ade731b748
tree7c21cb31ba8a57160bbb32c7cd488298353ce102
parentc8745e07d5d676b2cb49f90baec1ac5e66cb7383
tools: bpftool: remove unnecessary 'if' to reduce indentation

It is obvious we could use 'else if' instead of start a new 'if' in the
touched code.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/prog.c