Re: [PATCH bpf-next] libbpf: Simplify the find_elf_sec_sz() function

From: patchwork-bot+netdevbpf
Date: Wed Feb 23 2022 - 18:10:17 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Wed, 23 Feb 2022 16:52:44 +0800 you wrote:
> The check in the last return statement is unnecessary, we can just return
> the ret variable.
>
> But we can simplify the function further by returning 0 immediately if we
> find the section size and -ENOENT otherwise.
>
> Thus we can also remove the ret variable.
>
> [...]

Here is the summary with links:
- [bpf-next] libbpf: Simplify the find_elf_sec_sz() function
https://git.kernel.org/bpf/bpf-next/c/08894d9c647a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html