Re: [PATCH v2] libbpf: optimize the redundant code in the bpf_object__init_user_btf_maps() function.
From: patchwork-bot+netdevbpf
Date: Tue Oct 28 2025 - 13:30:31 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:
On Fri, 24 Oct 2025 16:08:02 +0800 you wrote:
> In the elf_sec_data() function, the input parameter 'scn' will be
> evaluated. If it is NULL, then it will directly return NULL. Therefore,
> the return value of the elf_sec_data() function already takes into
> account the case where the input parameter scn is NULL. Therefore,
> subsequently, the code only needs to check whether the return value of
> the elf_sec_data() function is NULL.
>
> [...]
Here is the summary with links:
- [v2] libbpf: optimize the redundant code in the bpf_object__init_user_btf_maps() function.
https://git.kernel.org/bpf/bpf-next/c/4f361895ae65
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html