bpf: refactor propagate_liveness to eliminate duplicated for loop
authorJiong Wang <jiong.wang@netronome.com>
Fri, 12 Apr 2019 21:59:34 +0000 (22:59 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 13 Apr 2019 00:06:33 +0000 (17:06 -0700)
commit1b04aee7e2182454a663950e68084fa5ada9625a
tree9c30613481104cd29ffb83d63eafe080914a63ca
parent51356ac89b5a15e5207e8740d5f4f8b71cb7332f
bpf: refactor propagate_liveness to eliminate duplicated for loop

Propagation for register and stack slot are finished in separate for loop,
while they are perfect to be put into a single loop.

This could also let them share some common variables in later patches.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c