diff options
author | Michael Knudsen <mk@cvs.openbsd.org> | 2008-06-14 10:55:22 +0000 |
---|---|---|
committer | Michael Knudsen <mk@cvs.openbsd.org> | 2008-06-14 10:55:22 +0000 |
commit | ace977b163a487262367b29bf0a11c9438cd3480 (patch) | |
tree | a9aacbf84fd80fdaa00d85a1f4cf5d4d21c7ae8d /sys/dev | |
parent | 4ef5afc9653e726120eef49602859549321429b8 (diff) |
A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)
conversions that should shave a few bytes off the kernel.
ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer
FOO|BAR''; thanks for looking.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ccd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index 5c05feb4dd6..4a889a02a24 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.82 2007/09/12 18:45:14 mk Exp $ */ +/* $OpenBSD: ccd.c,v 1.83 2008/06/14 10:55:20 mk Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -211,8 +211,8 @@ getccdbuf(void) { struct ccdbuf *cbp; - if ((cbp = pool_get(&ccdbufpl, PR_WAITOK))) - bzero(cbp, sizeof(struct ccdbuf)); + cbp = pool_get(&ccdbufpl, PR_WAITOK | PR_ZERO); + return (cbp); } |