projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3521ba1
)
bpf tools: Remove expression with no effect
author
Florian Fainelli
<
[email protected]
>
Mon, 25 Apr 2016 02:34:53 +0000
(19:34 -0700)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 28 Apr 2016 12:58:57 +0000
(09:58 -0300)
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: 1b76c13e4b36 ("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]
>
tools/build/feature/test-bpf.c
patch
|
blob
|
history
diff --git
a/tools/build/feature/test-bpf.c
b/tools/build/feature/test-bpf.c
index b389026839b97c0e35738f52564e87036fb79735..8236df9a46ca79a523d3687acf1d987a98258b67 100644
(file)
--- a/
tools/build/feature/test-bpf.c
+++ b/
tools/build/feature/test-bpf.c
@@
-27,7
+27,6
@@
int main(void)
attr.log_level = 0;
attr.kern_version = 0;
- attr = attr;
/*
* Test existence of __NR_bpf and BPF_PROG_LOAD.
* This call should fail if we run the testcase.