From: Theodore Ts'o Date: Wed, 19 Sep 2001 22:27:39 +0000 (-0400) Subject: Remove dead code that wasn't in use from tune2fs. X-Git-Tag: E2FSPROGS-1.25~4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f6a6afcef4ccd0215bd00a21efc20b932abbaf0c;p=tools%2Fe2fsprogs.git Remove dead code that wasn't in use from tune2fs. --- diff --git a/misc/ChangeLog b/misc/ChangeLog index 8fab46d..d5d4325 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,5 +1,8 @@ 2001-09-19 Theodore Tso + * 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. diff --git a/misc/tune2fs.c b/misc/tune2fs.c index c53d20d..028c25c 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -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;