Re: [PATCH] perf tools: Simplify the calculation of variables

2021-02-18 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 05, 2021 at 10:49:15AM +0100, Jiri Olsa escreveu: > On Fri, Feb 05, 2021 at 11:54:15AM +0800, Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > > > ./tools/perf/util/header.c:3809:18-20: WARNING !A || A && B is > > equivalent to !A || B. > > > > Reported-by: Abaci Ro

Re: [PATCH] perf tools: Simplify the calculation of variables

2021-02-05 Thread Jiri Olsa
On Fri, Feb 05, 2021 at 11:54:15AM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./tools/perf/util/header.c:3809:18-20: WARNING !A || A && B is > equivalent to !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > tools/perf/util/header.c | 2 +

[PATCH] perf tools: Simplify the calculation of variables

2021-02-04 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/perf/util/header.c:3809:18-20: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/perf/util/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/he