mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 07:42:07 +00:00
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>
This commit is contained in:
parent
c8745e07d5
commit
3197239d24
@ -777,8 +777,7 @@ static int do_dump(int argc, char **argv)
|
||||
|
||||
if (json_output)
|
||||
jsonw_null(json_wtr);
|
||||
} else {
|
||||
if (member_len == &info.jited_prog_len) {
|
||||
} else if (member_len == &info.jited_prog_len) {
|
||||
const char *name = NULL;
|
||||
|
||||
if (info.ifindex) {
|
||||
@ -798,7 +797,6 @@ static int do_dump(int argc, char **argv)
|
||||
dump_xlated_plain(&dd, buf, *member_len, opcodes);
|
||||
kernel_syms_destroy(&dd);
|
||||
}
|
||||
}
|
||||
|
||||
free(buf);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user