Re: [PATCH] perf/core: remove useless cast when comparing
On Thu, Feb 09, 2017 at 04:25:46PM +0800, Mars Cheng wrote: > since nr_cpu_ids and cpu are both int, remove the casting Please as to learn C before playing. Consider negative numbers.
[PATCH] perf/core: remove useless cast when comparing
since nr_cpu_ids and cpu are both int, remove the casting Signed-off-by: Mars Cheng --- kernel/events/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index ab15509..3482342 100644 --- a/kernel/events/core.c +++ b/kernel/ev