diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2021-11-23 05:27:32 +0530 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2021-11-30 15:48:14 -0800 |
| commit | 0270090d396a8e7e7f42adae13fdfa48ffb85144 (patch) | |
| tree | c0dd5b0d7e0ee3bd07d2e6dea0f1cbf6e2a980ac /lib/mpi/mpi-inv.c | |
| parent | d4efb170861827290f7f571020001a60d001faaf (diff) | |
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 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions
