diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2016-01-26 19:09:58 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2016-01-26 19:09:58 +0000 |
commit | bb0e8c9019c5139bfcdddaab9c8046a72799dd73 (patch) | |
tree | 75afc7eead94889ed2bd85f769bda54feb3b2be5 | |
parent | 80323664074266de5ae48e38b9c4f8beb88c6a63 (diff) |
Remove needless zeroing. Anonymously mapped memory is always zeroed.
ok tb@
-rw-r--r-- | sbin/newfs_ext2fs/mke2fs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/newfs_ext2fs/mke2fs.c b/sbin/newfs_ext2fs/mke2fs.c index 1a83472f4f8..1fb94768d8e 100644 --- a/sbin/newfs_ext2fs/mke2fs.c +++ b/sbin/newfs_ext2fs/mke2fs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mke2fs.c,v 1.14 2015/11/26 06:59:12 deraadt Exp $ */ +/* $OpenBSD: mke2fs.c,v 1.15 2016/01/26 19:09:57 mmcc Exp $ */ /* $NetBSD: mke2fs.c,v 1.13 2009/10/19 18:41:08 bouyer Exp $ */ /*- @@ -536,7 +536,6 @@ mke2fs(const char *fsys, int fi, int fo) MAP_ANON|MAP_PRIVATE, -1, 0); if (iobuf == MAP_FAILED) errx(EXIT_FAILURE, "Cannot allocate I/O buffer\n"); - memset(iobuf, 0, iobufsize); /* * We now start writing to the filesystem |