[PATCH v3 5/5] powernv:cpufreq: Implement the driver->get() method
Viresh Kumar
viresh.kumar at linaro.org
Fri Mar 21 23:34:08 EST 2014
On 21 March 2014 17:31, David Laight <David.Laight at aculab.com> wrote:
>> *(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.
More information about the Linuxppc-dev
mailing list