Re: [PATCH] perf script: Remove unnecessary conversion to bool

2020-11-05 Thread Namhyung Kim
Hello, On Fri, Nov 6, 2020 at 12:33 PM wrote: > > From: Kaixu Xia > > Here we could use the '!=' expression to fix the following coccicheck > warning: > > ./tools/perf/builtin-script.c:3209:48-53: WARNING: conversion to bool not > needed here > ./tools/perf/builtin-script.c:2761:36-41: WARNING:

[PATCH] perf script: Remove unnecessary conversion to bool

2020-11-05 Thread xiakaixu1987
From: Kaixu Xia Here we could use the '!=' expression to fix the following coccicheck warning: ./tools/perf/builtin-script.c:3209:48-53: WARNING: conversion to bool not needed here ./tools/perf/builtin-script.c:2761:36-41: WARNING: conversion to bool not needed here Reported-by: Tosk Robot S