]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b02f79a319424d6bb1038673960c41773e29fce
tree7c21cb31ba8a57160bbb32c7cd488298353ce102
parent1c64b058ae01add844fed82cfacb152b4789fda2
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