diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-02 00:59:13 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-10-02 00:59:13 +0000 |
commit | fcfb7cb8255b0a7271e581314b67d6479d83ad7c (patch) | |
tree | e9efdb5a76104b7303a0b6dddab7ae12a4d352ed /sys/ufs | |
parent | a6b481e93e8e14c27731c12457de6fdb40c61dd6 (diff) |
Apply (with slight variants) this elimination of bzero() with M_ZERO:
- if ((mapstore = malloc(mapsize, M_DEVBUF,
- (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL)
+ if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ?
+ (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL)
return (ENOMEM);
- bzero(mapstore, mapsize);
Diffstat (limited to 'sys/ufs')
0 files changed, 0 insertions, 0 deletions