![]() | |||||||||||
Messages in this thread |
On 05/05/05 11:07 -0700, gh@us.ibm.com 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| ||||||||||
| Last update: 2005-05-08 14:53 [from the cache] ©2003-2008 | |||||||||||