diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 18:30:14 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-08 18:30:14 +0000 |
commit | 2a12caa92ac207761aa182f06eba4899f0f4abbb (patch) | |
tree | 72817db819a579503d308b25ff51fc0edde6c4e9 /sys/arch/sparc64/dev/psycho.c | |
parent | 483392ba73a7eaba1e4f85e4d5df4a3b1587df8f (diff) |
A few trailing bzero/memset -> M_ZERO occurrences, cast removal and
size(*p) usage. This should be the last of the simple malloc()
changes.
Diffstat (limited to 'sys/arch/sparc64/dev/psycho.c')
-rw-r--r-- | sys/arch/sparc64/dev/psycho.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c index 4034f56f428..2fae1859431 100644 --- a/sys/arch/sparc64/dev/psycho.c +++ b/sys/arch/sparc64/dev/psycho.c @@ -1,4 +1,4 @@ -/* $OpenBSD: psycho.c,v 1.53 2007/09/08 10:50:04 martin Exp $ */ +/* $OpenBSD: psycho.c,v 1.54 2007/10/08 18:30:13 krw Exp $ */ /* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */ /* @@ -614,11 +614,9 @@ psycho_set_intr(struct psycho_softc *sc, int ipl, void *handler, { struct intrhand *ih; - ih = (struct intrhand *)malloc(sizeof(struct intrhand), - M_DEVBUF, M_NOWAIT); + ih = malloc(sizeof(*ih), M_DEVBUF, M_NOWAIT | M_ZERO); if (ih == NULL) panic("couldn't malloc intrhand"); - memset(ih, 0, sizeof(struct intrhand)); ih->ih_arg = sc; ih->ih_map = mapper; ih->ih_clr = clearer; |