Remove unneeded cast.
Reviewed by: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
98c2674e93
commit
57f99aede6
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user