aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/stackmap.c
diff options
context:
space:
mode:
authorShung-Hsi Yu <[email protected]>2023-11-08 22:00:41 +0800
committerAlexei Starovoitov <[email protected]>2023-11-09 19:07:51 -0800
commit82ce364c6087e31ff9837380a4641a856284064c (patch)
tree4e57f84858fd1fa44c45412ad9f553c0d3dfb726 /kernel/bpf/stackmap.c
parent27007fae704eb12547b9b5c7b1005e11640d4f19 (diff)
bpf: replace register_is_const() with is_reg_const()
The addition of is_reg_const() in commit 171de12646d2 ("bpf: generalize is_branch_taken to handle all conditional jumps in one place") has made the register_is_const() redundant. Give the former has more feature, plus the fact the latter is only used in one place, replace register_is_const() with is_reg_const(), and remove the definition of register_is_const. This requires moving the definition of is_reg_const() further up. And since the comment of reg_const_value() reference is_reg_const(), move it up as well. Signed-off-by: Shung-Hsi Yu <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions