Re: [PATCH v3 5/5] powernv:cpufreq: Implement the driver->get() method
From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2014-03-21 12:34:09
Also in:
linux-pm
From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2014-03-21 12:34:09
Also in:
linux-pm
On 21 March 2014 17:31, David Laight [off-list ref] wrote:
quoted
*(int *)ret_freq = freq;Because it is very likely to be wrong. In general casts of pointers to integer types are dangerous.
Where are we converting pointers to integers? We are doing a cast from 'void * ' to 'int *' and then using indirection operator to set its value.