diff options
author | 2021-11-23 05:27:32 +0530 | |
---|---|---|
committer | 2021-11-30 15:48:14 -0800 | |
commit | 0270090d396a8e7e7f42adae13fdfa48ffb85144 (patch) | |
tree | c0dd5b0d7e0ee3bd07d2e6dea0f1cbf6e2a980ac /drivers/net/wwan/iosm/iosm_ipc_mux.c | |
parent | bpf: Change bpf_kallsyms_lookup_name size type to ARG_CONST_SIZE_OR_ZERO (diff) | |
download | linux-rng-0270090d396a8e7e7f42adae13fdfa48ffb85144.tar.xz linux-rng-0270090d396a8e7e7f42adae13fdfa48ffb85144.zip |
libbpf: Avoid double stores for success/failure case of ksym relocations
Instead, jump directly to success case stores in case ret >= 0, else do
the default 0 value store and jump over the success case. This is better
in terms of readability. Readjust the code for kfunc relocation as well
to follow a similar pattern, also leads to easier to follow code now.
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20211122235733.634914-3-memxor@gmail.com
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_mux.c')
0 files changed, 0 insertions, 0 deletions