diff options
author | 2016-02-27 21:58:48 +0000 | |
---|---|---|
committer | 2016-02-27 21:58:48 +0000 | |
commit | 67c746f921be3c2bc1ffd4cd899f84a3c1f7ef2e (patch) | |
tree | 3aa8c34ca1d376f582dca0e88574342526b32ed3 | |
parent | Add documentation for the APM_IOC_HIBERNATE ioctl. (diff) | |
download | wireguard-openbsd-67c746f921be3c2bc1ffd4cd899f84a3c1f7ef2e.tar.xz wireguard-openbsd-67c746f921be3c2bc1ffd4cd899f84a3c1f7ef2e.zip |
Remove a couple malloc casts. No functional change.
-rw-r--r-- | sys/arch/hppa64/hppa64/intr.c | 6 |
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); |