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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to