Re: [alsa-devel] [PATCH] emu10k1: Fix coccicheck warning
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
4305
Age (days ago)
4305
Last active (days ago)
0 comments
1 participants
participants (1)
-
Clemens Ladisch