Re: [PATCH] cpufreq: Replace double NOT (!!) with single NOT (!)

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 11:46:21 AM CET Viresh Kumar wrote: > Double NOT (!!) operation is normally done to convert a non-zero value > to 1 and keep zero as is, but that isn't the requirement in this case. > All we wanted was to make sure that only one of the two routines isn't > set, i.e. e

[PATCH] cpufreq: Replace double NOT (!!) with single NOT (!)

2019-02-14 Thread Viresh Kumar
Double NOT (!!) operation is normally done to convert a non-zero value to 1 and keep zero as is, but that isn't the requirement in this case. All we wanted was to make sure that only one of the two routines isn't set, i.e. either both function pointers are set or both are unset. This can be done w