Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1388623
| From | "Wangnan (F)" <wangnan0@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] bfp tools: Remove expression with no effect |
| Date | 2016-04-27 05:20 +0200 |
| Message-ID | <rsob7-2nW-5@gated-at.bofh.it> (permalink) |
| References | <rrEBk-6GB-15@gated-at.bofh.it> <rrEBk-6GB-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2016/4/25 10:34, Florian Fainelli wrote:
> Assigning "attr" to "attr" does not have any effect, but was caught by
> Coverity, so let's remove this.
>
> Reported-by: coverity (CID 1354720)
> Fixes: 1b76c13e4b36 ("bpf tools: Introduce 'bpf' library and add bpf feature check")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> tools/build/feature/test-bpf.c | 1 -
> 1 file changed, 1 deletion(-)
>
> 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.
Tested-by: Wang Nan <wangnan0@huawei.com>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] bfp tools: Couple Coverity fixes Florian Fainelli <f.fainelli@gmail.com> - 2016-04-25 04:40 +0200
[PATCH 1/2] bfp tools: Remove expression with no effect Florian Fainelli <f.fainelli@gmail.com> - 2016-04-25 04:40 +0200
Re: [PATCH 1/2] bfp tools: Remove expression with no effect "Wangnan (F)" <wangnan0@huawei.com> - 2016-04-27 05:20 +0200
Re: [PATCH 1/2] bfp tools: Remove expression with no effect Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-04-27 16:40 +0200
[PATCH 2/2] bfp tools: Fix syscall argument Florian Fainelli <f.fainelli@gmail.com> - 2016-04-25 04:40 +0200
Re: [PATCH 2/2] bfp tools: Fix syscall argument "Wangnan (F)" <wangnan0@huawei.com> - 2016-04-27 05:10 +0200
Re: [PATCH 2/2] bfp tools: Fix syscall argument Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-04-27 16:40 +0200
Re: [PATCH 0/2] bfp tools: Couple Coverity fixes Florian Fainelli <f.fainelli@gmail.com> - 2016-04-27 04:50 +0200
Re: [PATCH 0/2] bfp tools: Couple Coverity fixes "Wangnan (F)" <wangnan0@huawei.com> - 2016-04-27 05:10 +0200
Re: [PATCH 0/2] bfp tools: Couple Coverity fixes Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-04-27 05:10 +0200
Re: [PATCH 0/2] bfp tools: Couple Coverity fixes Arnaldo Carvalho de Melo <acme@redhat.com> - 2016-04-27 16:30 +0200
csiph-web