lkml.org 
[lkml]   [2022]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH bpf-next] libbpf: Simplify the find_elf_sec_sz() function
From
Date
Hello:

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

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


\
 
 \ /
  Last update: 2022-02-24 00:10    [W:0.027 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site