mkfs_ext2: shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Oct 2009 07:57:39 +0000 (09:57 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Oct 2009 07:57:39 +0000 (09:57 +0200)
function                                             old     new   delta
mkfs_ext2_main                                      1924    1904     -20

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mkfs_ext2.c

index 6b059d9ff4d016c393d3a5fb2bfd1130ed4c9cf8..8df9f1a66c80713e93952df7b78def1c0dceafed 100644 (file)
@@ -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