Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: fix RELEASE=1 compilation for sock_addr.c

When building selftests with RELEASE=1 using GCC compiler, it complaints
about uninitialized err. Fix the problem.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240730231805.1933923-1-andrii@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>

authored by

Andrii Nakryiko and committed by
Martin KaFai Lau
92cc2456 32654bbd

+1
+1
tools/testing/selftests/bpf/prog_tests/sock_addr.c
··· 2642 2642 break; 2643 2643 default: 2644 2644 ASSERT_TRUE(false, "Unknown sock addr test type"); 2645 + err = -EINVAL; 2645 2646 break; 2646 2647 } 2647 2648