ecryptfs: Eliminate useless code
The variable lower_dentry is initialized twice to the same (side effect-free) expression. Drop one initialization. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // <smpl> @forall@ idexpression *x; identifier f!=ERR_PTR; @@ x = f(...) ... when != x ( x = f(...,<+...x...+>,...) | * x = f(...) ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
This commit is contained in:
Родитель
fe0fc013cd
Коммит
4aa25bcb7d
|
@ -158,7 +158,7 @@ static int ecryptfs_open(struct inode *inode, struct file *file)
|
|||
struct dentry *ecryptfs_dentry = file->f_path.dentry;
|
||||
/* Private value of ecryptfs_dentry allocated in
|
||||
* ecryptfs_lookup() */
|
||||
struct dentry *lower_dentry = ecryptfs_dentry_to_lower(ecryptfs_dentry);
|
||||
struct dentry *lower_dentry;
|
||||
struct ecryptfs_file_info *file_info;
|
||||
|
||||
mount_crypt_stat = &ecryptfs_superblock_to_private(
|
||||
|
|
Загрузка…
Ссылка в новой задаче