Skip to content

Commit bbcb03e

Browse files
committed
eCryptfs: Fix -Wunused-but-set-variable warnings
These two variables are no longer used and can be removed. Fixes warnings when building with W=1. Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
1 parent fa51996 commit bbcb03e

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

‎fs/ecryptfs/dentry.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@
4545
static int ecryptfs_d_revalidate(struct dentry *dentry, unsigned int flags)
4646
{
4747
struct dentry *lower_dentry;
48-
struct vfsmount *lower_mnt;
4948
int rc = 1;
5049

5150
if (flags & LOOKUP_RCU)
5251
return -ECHILD;
5352

5453
lower_dentry = ecryptfs_dentry_to_lower(dentry);
55-
lower_mnt = ecryptfs_dentry_to_lower_mnt(dentry);
5654
if (!lower_dentry->d_op || !lower_dentry->d_op->d_revalidate)
5755
goto out;
5856
rc = lower_dentry->d_op->d_revalidate(lower_dentry, flags);

‎fs/ecryptfs/file.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
199199
struct dentry *ecryptfs_dentry = file->f_path.dentry;
200200
/* Private value of ecryptfs_dentry allocated in
201201
* ecryptfs_lookup() */
202-
struct dentry *lower_dentry;
203202
struct ecryptfs_file_info *file_info;
204203

205204
mount_crypt_stat = &ecryptfs_superblock_to_private(
@@ -222,7 +221,6 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
222221
rc = -ENOMEM;
223222
goto out;
224223
}
225-
lower_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry);
226224
crypt_stat = &ecryptfs_inode_to_private(inode)->crypt_stat;
227225
mutex_lock(&crypt_stat->cs_mutex);
228226
if (!(crypt_stat->flags & ECRYPTFS_POLICY_APPLIED)) {

0 commit comments

Comments
 (0)