Skip to content

Commit a431d67

Browse files
ffainelliacmel
authored andcommitted
bpf tools: Remove expression with no effect
Assigning "attr" to "attr" does not have any effect, but was caught by Coverity, so let's remove this. Reported-by: coverity (CID 1354720) Signed-off-by: Florian Fainelli <[email protected]> Tested-by: Wang Nan <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Cc: Jiri Olsa <[email protected]> Fixes: 1b76c13 ("bpf tools: Introduce 'bpf' library and add bpf feature check") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 3521ba1 commit a431d67

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/build/feature/test-bpf.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ int main(void)
2727
attr.log_level = 0;
2828
attr.kern_version = 0;
2929

30-
attr = attr;
3130
/*
3231
* Test existence of __NR_bpf and BPF_PROG_LOAD.
3332
* This call should fail if we run the testcase.

0 commit comments

Comments
 (0)