Whamcloud - gitweb
Remove dead code that wasn't in use from tune2fs.
authorTheodore Ts'o <tytso@mit.edu>
Wed, 19 Sep 2001 22:27:39 +0000 (18:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Sep 2001 22:27:39 +0000 (18:27 -0400)
misc/ChangeLog
misc/tune2fs.c

index 8fab46d..d5d4325 100644 (file)
@@ -1,5 +1,8 @@
 2001-09-19  Theodore Tso  <tytso@valinux.com>
 
+       * tune2fs.c (remove_journal_inode): Remove dead code that wasn't
+               in use.
+
        * tune2fs.8.in: Update man page to reflect the fact that adding or
                removing a journal doesn't require running e2fsck.
 
index c53d20d..028c25c 100644 (file)
@@ -207,7 +207,6 @@ static void remove_journal_inode(ext2_filsys fs)
        struct ext2_inode       inode;
        errcode_t               retval;
        ino_t                   ino = fs->super->s_journal_inum;
-       int                     group;
        
        retval = ext2fs_read_inode(fs, ino,  &inode);
        if (retval) {
@@ -231,7 +230,6 @@ static void remove_journal_inode(ext2_filsys fs)
                }
                memset(&inode, 0, sizeof(inode));
                ext2fs_mark_bb_dirty(fs);
-               group = ext2fs_group_of_ino(fs, ino);
                fs->flags &= ~EXT2_FLAG_SUPER_ONLY;
        } else
                inode.i_flags &= ~EXT2_IMMUTABLE_FL;