Re: [patch 21/21] CKRM: Fix for compiler warnings

From: Domen Puncer
Date: Sun May 08 2005 - 07:50:52 EST


On 05/05/05 11:07 -0700, gh@xxxxxxxxxx wrote:
> -static void cb_taskclass_newtask(struct task_struct *tsk)
> +static void cb_taskclass_newtask(void *tsk1)
> {
> + struct task_struct *tsk = (struct task_struct *)tsk1;
> +

I see this often in this code, so I'll mention it:
There's no need to cast void pointers to other pointers.


Domen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/