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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux