summaryrefslogtreecommitdiff
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-13 15:48:42 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-13 15:48:42 +0000
commit9b7de545aadd28823ad2cd792a821e6c0fdcf0be (patch)
tree8400e40a92063763df370a925a24abb4a81ee451 /sys/kern/sys_generic.c
parente4540409f4920b5bb8d933fc20a9cb37e990394c (diff)
trim some casts
Diffstat (limited to 'sys/kern/sys_generic.c')
-rw-r--r--sys/kern/sys_generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index b62f44e6722..1694640f1dc 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_generic.c,v 1.91 2014/07/13 15:29:04 tedu Exp $ */
+/* $OpenBSD: sys_generic.c,v 1.92 2014/07/13 15:48:41 tedu Exp $ */
/* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */
/*
@@ -945,7 +945,7 @@ doppoll(struct proc *p, struct pollfd *fds, u_int nfds,
/* optimize for the default case, of a small nfds value */
if (sz > sizeof(pfds))
- pl = (struct pollfd *) malloc(sz, M_TEMP, M_WAITOK);
+ pl = malloc(sz, M_TEMP, M_WAITOK);
if ((error = copyin(fds, pl, sz)) != 0)
goto bad;