]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: refactor "check_reg_arg" to eliminate code redundancy
authorJiong Wang <jiong.wang@netronome.com>
Fri, 12 Apr 2019 21:59:37 +0000 (22:59 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 13 Apr 2019 00:06:33 +0000 (17:06 -0700)
commitdcb3248e384d8f9724841fea81ee389212633c2e
treee9a038688270daccc0271ba1bc93b7e745863037
parent18b26a8585134130f0094d8ae20b25466b045a93
bpf: refactor "check_reg_arg" to eliminate code redundancy

There are a few "regs[regno]" here are there across "check_reg_arg", this
patch factor it out into a simple "reg" pointer. The intention is to
simplify code indentation and make the later patches in this set look
cleaner.

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