Skip to contentSkip to conversation

libext2fs: remove unused variable 'old_flags'

PATCH Applied Eric Biggers 2 participants 2 messages Apr 22, 2019 – Apr 29, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libext2fs: remove unused variable 'old_flags'

From: Eric Biggers <[email protected]>

In ext2fs_write_inode2(), the 'old_flags' variable is never used.

---
 lib/ext2fs/inode.c | 1 -
 1 file changed, 1 deletion(-)
lib/ext2fs/inode.c +0 -1
index 2a4be739..75df418d 100644
@@ -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);
Signature · 1 line
2.21.0.593.g511ec345e18-goog