10 Mar
2013
10 Mar
'13
5:32 p.m.
Vicentiu Ciorbaru wrote:
Removed redundant cast of kmalloc return pointer.
(icode->gpr_map = (u_int32_t __user *)
kcalloc(512 + 256 + 256 + 2 * 1024, sizeof(u_int32_t),
GFP_KERNEL)) == NULL ||
(icode->gpr_map = kcalloc(512 + 256 + 256 + 2 * 1024,
sizeof(u_int32_t), GFP_KERNEL)) == NULL ||
Why would casting to __user be redundant?
Regards, Clemens