From: Denys Vlasenko Date: Sun, 18 Oct 2009 07:57:39 +0000 (+0200) Subject: mkfs_ext2: shrink X-Git-Tag: 1_16_0~372 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7673e7fda42a2665f8528d531e9596f264643149;p=oweals%2Fbusybox.git mkfs_ext2: shrink function old new delta mkfs_ext2_main 1924 1904 -20 Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c index 6b059d9ff..8df9f1a66 100644 --- a/util-linux/mkfs_ext2.c +++ b/util-linux/mkfs_ext2.c @@ -283,7 +283,6 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv) nblocks = xatou(argv[1]); } else { nblocks = ((uoff_t)xlseek(fd, 0, SEEK_END)) / blocksize; - xlseek(fd, 0, SEEK_SET); } sb->s_blocks_count = nblocks; @@ -414,7 +413,6 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv) ); // dump inode bitmap PUT((pos + overhead + 1) * blocksize, buf, blocksize); - } // zero boot sectors