diff options
author | 2007-09-17 01:33:32 +0000 | |
---|---|---|
committer | 2007-09-17 01:33:32 +0000 | |
commit | bc9397c26aaad8e0a945c6ec3edf3823462c632c (patch) | |
tree | 25e2968872ea7b7af0f968b451d2078faeebd89f /sys/dev/sdmmc | |
parent | A little cleaning.. (diff) | |
download | wireguard-openbsd-bc9397c26aaad8e0a945c6ec3edf3823462c632c.tar.xz wireguard-openbsd-bc9397c26aaad8e0a945c6ec3edf3823462c632c.zip |
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/dev/sdmmc')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/sdmmc/sdmmc_io.c b/sys/dev/sdmmc/sdmmc_io.c index 07d0cea898f..839740ee8be 100644 --- a/sys/dev/sdmmc/sdmmc_io.c +++ b/sys/dev/sdmmc/sdmmc_io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_io.c,v 1.9 2007/06/02 01:48:37 uwe Exp $ */ +/* $OpenBSD: sdmmc_io.c,v 1.10 2007/09/17 01:33:33 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -611,11 +611,10 @@ sdmmc_intr_establish(struct device *sdmmc, int (*fun)(void *), if (sc->sct->card_intr_mask == NULL) return NULL; - ih = malloc(sizeof *ih, M_DEVBUF, M_WAITOK | M_CANFAIL); + ih = malloc(sizeof *ih, M_DEVBUF, M_WAITOK | M_CANFAIL | M_ZERO); if (ih == NULL) return NULL; - bzero(ih, sizeof *ih); ih->ih_name = malloc(strlen(name), M_DEVBUF, M_WAITOK | M_CANFAIL); if (ih->ih_name == NULL) { free(ih, M_DEVBUF); |