summaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-04-25 05:34:53 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-04-28 15:58:57 +0300
commita431d67934dfe9ffbe65972b0dbe576331595186 (patch)
tree7b2e38e78177de5a22ba1dee3e201f9b060a810e /tools/build
parent3521ba1cc351e80488c3f85748c92c3853b75818 (diff)
downloadlinux-a431d67934dfe9ffbe65972b0dbe576331595186.tar.xz
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 <f.fainelli@gmail.com> Tested-by: Wang Nan <wangnan0@huawei.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Fixes: 1b76c13e4b36 ("bpf tools: Introduce 'bpf' library and add bpf feature check") Link: http://lkml.kernel.org/r/1461551694-5512-2-git-send-email-f.fainelli@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/build')
-rw-r--r--tools/build/feature/test-bpf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/build/feature/test-bpf.c b/tools/build/feature/test-bpf.c
index b389026839b9..8236df9a46ca 100644
--- 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.