summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.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/kern_subr.c
parente4540409f4920b5bb8d933fc20a9cb37e990394c (diff)
trim some casts
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r--sys/kern/kern_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index 1c0c44752bb..596032ad100 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_subr.c,v 1.39 2014/07/13 15:29:04 tedu Exp $ */
+/* $OpenBSD: kern_subr.c,v 1.40 2014/07/13 15:48:41 tedu Exp $ */
/* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */
/*
@@ -192,7 +192,7 @@ hook_establish(struct hook_desc_head *head, int tail, void (*fn)(void *),
{
struct hook_desc *hdp;
- hdp = (struct hook_desc *)malloc(sizeof (*hdp), M_DEVBUF, M_NOWAIT);
+ hdp = malloc(sizeof(*hdp), M_DEVBUF, M_NOWAIT);
if (hdp == NULL)
return (NULL);