[alsa-devel] [PATCH] emu10k1: Fix coccicheck warning
Clemens Ladisch
clemens at ladisch.de
Sun Mar 10 17:32:07 CET 2013
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
More information about the Alsa-devel
mailing list