Skip to contentSkip to conversation

fs/ntfs: remove not used variable 'base_ni'

PATCH New Qiujun Huang 1 participant 1 message Mar 4, 2020 NTFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/ntfs: remove not used variable 'base_ni'

It is not used, so can be removed.

---
 fs/ntfs/file.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
fs/ntfs/file.c +1 -4
index f42967b..e5aab26 100644
@@ -323,7 +323,7 @@ static ssize_t ntfs_prepare_file_for_write(struct kiocb *iocb,
 	unsigned long flags;
 	struct file *file = iocb->ki_filp;
 	struct inode *vi = file_inode(file);
-	ntfs_inode *base_ni, *ni = NTFS_I(vi);
+	ntfs_inode *ni = NTFS_I(vi);
 	ntfs_volume *vol = ni->vol;
 
 	ntfs_debug("Entering for i_ino 0x%lx, attribute type 0x%x, pos "
@@ -365,9 +365,6 @@ static ssize_t ntfs_prepare_file_for_write(struct kiocb *iocb,
 		err = -EOPNOTSUPP;
 		goto out;
 	}
-	base_ni = ni;
-	if (NInoAttr(ni))
-		base_ni = ni->ext.base_ntfs_ino;
 	err = file_remove_privs(file);
 	if (unlikely(err))
 		goto out;
Signature · 1 line
1.8.3.1