summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2016-02-27 21:58:49 +0000
committermmcc <mmcc@cvs.openbsd.org>2016-02-27 21:58:49 +0000
commitcc12e85ec3f7148a9e0e87c062961f5e6cc484a9 (patch)
tree4e7332f89edb185aae77b15061b608d7fcb47724 /sys/arch/hppa64
parentbf5c17ecf887f943aa07a4af37e6f5cfe2fe8daa (diff)
Remove a couple malloc casts. No functional change.
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/hppa64/intr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa64/hppa64/intr.c b/sys/arch/hppa64/hppa64/intr.c
index ac5ecdb9ae3..cb7e575d8e6 100644
--- a/sys/arch/hppa64/hppa64/intr.c
+++ b/sys/arch/hppa64/hppa64/intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.c,v 1.11 2015/02/11 13:05:44 miod Exp $ */
+/* $OpenBSD: intr.c,v 1.12 2016/02/27 21:58:48 mmcc Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
@@ -126,7 +126,7 @@ cpu_intr_map(void *v, int pri, int irq, int (*handler)(void *), void *arg,
if (irq < 0 || irq >= CPU_NINTS)
return (NULL);
- cnt = (struct evcount *)malloc(sizeof *cnt, M_DEVBUF, M_NOWAIT);
+ cnt = malloc(sizeof(*cnt), M_DEVBUF, M_NOWAIT);
if (!cnt)
return (NULL);
@@ -169,7 +169,7 @@ cpu_intr_establish(int pri, int irq, int (*handler)(void *), void *arg,
if ((intr_table[irq].flags & HPPA_IV_SOFT) != 0)
return (NULL);
- cnt = (struct evcount *)malloc(sizeof *cnt, M_DEVBUF, M_NOWAIT);
+ cnt = malloc(sizeof(*cnt), M_DEVBUF, M_NOWAIT);
if (!cnt)
return (NULL);