Remove unneeded cast.

Reviewed by:	bde
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-10-06 10:17:50 +00:00
parent 98c2674e93
commit 57f99aede6

View File

@ -172,8 +172,7 @@ sysarch(struct thread *td, struct sysarch_args *uap)
break;
case I386_SET_LDT:
if (kargs.largs.descs != NULL) {
lp = (union descriptor *)malloc(
kargs.largs.num * sizeof(union descriptor),
lp = malloc(kargs.largs.num * sizeof(union descriptor),
M_TEMP, M_WAITOK);
error = copyin(kargs.largs.descs, lp,
kargs.largs.num * sizeof(union descriptor));