diff options
author | Martin KaFai Lau <martin.lau@kernel.org> | 2022-09-01 17:29:06 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-09-02 20:34:31 -0700 |
commit | c2b063ca34586758dcfd76e12696a71a1df849a0 (patch) | |
tree | f5d8b0d4ae8214f00d5d8faaae2197b5401660ec /net/core/sock.c | |
parent | 0f95f7d42611882a9a6250923dd493951a94961a (diff) |
bpf: Embed kernel CONFIG check into the if statement in bpf_getsockopt
This patch moves the "#ifdef CONFIG_XXX" check into the "if/else"
statement itself. The change is done for the bpf_getsockopt()
function only. It will make the latter patches easier to follow
without the surrounding ifdef macro.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220902002906.2893572-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions