Re: PATCH: Trivial kzalloc opportunity

From: Roland Dreier
Date: Wed Aug 16 2006 - 12:12:49 EST


> + return (struct tty_struct *)kzalloc(sizeof(struct tty_struct), GFP_KERNEL);

Why the cast here? kzalloc() returns void *

- R.
-
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/