We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 737433c commit 98857d1Copy full SHA for 98857d1
tools/testing/selftests/bpf/test_lirc_mode2_user.c
@@ -74,7 +74,7 @@ int main(int argc, char **argv)
74
75
/* Let's try detach it before it was ever attached */
76
ret = bpf_prog_detach2(progfd, lircfd, BPF_LIRC_MODE2);
77
- if (ret != -1 || errno != ENOENT) {
+ if (ret != -ENOENT) {
78
printf("bpf_prog_detach2 not attached should fail: %m\n");
79
return 1;
80
}
0 commit comments