summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-09-17 01:33:34 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-09-17 01:33:34 +0000
commita854e6884a9635329a1490f5cf8420c8ab6f8f85 (patch)
tree29bd971e80c3ea6bf34f989e494141dcc2c006cb /sys/arch/mac68k
parent1dd97578d5974d04f8b171b17c36e35635acd61b (diff)
Only the most obvious bzero() -> M_ZERO changes. No cast changes, no
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/dev/grf_iv.c5
-rw-r--r--sys/arch/mac68k/dev/grf_mv.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/mac68k/dev/grf_iv.c b/sys/arch/mac68k/dev/grf_iv.c
index 6ac8c2186db..08d12e94521 100644
--- a/sys/arch/mac68k/dev/grf_iv.c
+++ b/sys/arch/mac68k/dev/grf_iv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf_iv.c,v 1.41 2006/03/13 22:35:17 miod Exp $ */
+/* $OpenBSD: grf_iv.c,v 1.42 2007/09/17 01:33:32 krw Exp $ */
/* $NetBSD: grf_iv.c,v 1.17 1997/02/20 00:23:27 scottr Exp $ */
/*
@@ -175,8 +175,7 @@ macfb_obio_attach(struct device *parent, struct device *self, void *aux)
sc->card_id = 0;
sc->sc_tag = oa->oa_tag;
- dc = malloc(sizeof(*dc), M_DEVBUF, M_WAITOK);
- bzero(dc, sizeof(*dc));
+ dc = malloc(sizeof(*dc), M_DEVBUF, M_WAITOK | M_ZERO);
switch (current_mac_model->class) {
case MACH_CLASSQ2:
diff --git a/sys/arch/mac68k/dev/grf_mv.c b/sys/arch/mac68k/dev/grf_mv.c
index 1952836e6f3..19d3231ba3f 100644
--- a/sys/arch/mac68k/dev/grf_mv.c
+++ b/sys/arch/mac68k/dev/grf_mv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf_mv.c,v 1.34 2007/09/10 20:29:46 miod Exp $ */
+/* $OpenBSD: grf_mv.c,v 1.35 2007/09/17 01:33:33 krw Exp $ */
/* $NetBSD: grf_nubus.c,v 1.62 2001/01/22 20:27:02 briggs Exp $ */
/*
@@ -195,8 +195,7 @@ macfb_nubus_attach(struct device *parent, struct device *self, void *aux)
load_image_data((caddr_t)&image_store, &image);
- dc = malloc(sizeof(*dc), M_DEVBUF, M_WAITOK);
- bzero(dc, sizeof(*dc));
+ dc = malloc(sizeof(*dc), M_DEVBUF, M_WAITOK | M_ZERO);
dc->dc_vaddr = (vaddr_t)bus_space_vaddr(sc->sc_tag, sc->sc_handle);
dc->dc_paddr = sc->sc_basepa;