forked from rpms/e2fsprogs
29 lines
865 B
Diff
29 lines
865 B
Diff
From 75fceeee449a3a2ee158fee2a084d383f7360d1e Mon Sep 17 00:00:00 2001
|
|
From: Eric Biggers <ebiggers@google.com>
|
|
Date: Sun, 28 Apr 2019 20:37:45 -0400
|
|
Subject: [PATCH 2/4] libext2fs: remove unused variable 'old_flags'
|
|
|
|
In ext2fs_write_inode2(), the 'old_flags' variable is never used.
|
|
|
|
Signed-off-by: Eric Biggers <ebiggers@google.com>
|
|
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
|
---
|
|
lib/ext2fs/inode.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/lib/ext2fs/inode.c b/lib/ext2fs/inode.c
|
|
index 2a4be739..75df418d 100644
|
|
--- a/lib/ext2fs/inode.c
|
|
+++ b/lib/ext2fs/inode.c
|
|
@@ -903,7 +903,6 @@ errcode_t ext2fs_write_inode2(ext2_filsys fs, ext2_ino_t ino,
|
|
return retval;
|
|
|
|
if (bufsize < length) {
|
|
- int old_flags = fs->flags;
|
|
retval = ext2fs_read_inode2(fs, ino,
|
|
(struct ext2_inode *)w_inode,
|
|
length, READ_INODE_NOCSUM);
|
|
--
|
|
2.20.1
|
|
|