Re: [PATCH V2 2/4] perf/x86/intel/uncore: inline function to check the fixed counter event

From: Thomas Gleixner
Date: Fri Oct 20 2017 - 10:13:19 EST


On Thu, 19 Oct 2017, kan.liang@xxxxxxxxx wrote:
> From: Kan Liang <Kan.liang@xxxxxxxxx>
>
> Remove the special codes in generic uncore_perf_event_update.

What are special codes?

> Introduce inline function to check the fixed counter event.
>
> +static inline bool uncore_pmc_fixed(int idx)
> +{
> + return (idx == UNCORE_PMC_IDX_FIXED);

The parentheses are pointless. Please get rid of them.

Thanks,

tglx