From f6a6afcef4ccd0215bd00a21efc20b932abbaf0c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 19 Sep 2001 18:27:39 -0400 Subject: [PATCH] Remove dead code that wasn't in use from tune2fs. --- misc/ChangeLog | 3 +++ misc/tune2fs.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) 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; -- 1.8.3.1