diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-03-21 12:31:46 -0400 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2016-03-21 12:31:46 -0400 |
commit | 6986c012faa480fb0fda74eaae9abb22f7ad1004 (patch) | |
tree | 6317eca44fd7766e2421d2adc3a89ca577a161a4 /fs/overlayfs | |
parent | 56656e960b555cb98bc414382566dcb59aae99a2 (diff) |
ovl: cleanup unused var in rename2
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r-- | fs/overlayfs/dir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/overlayfs/dir.c b/fs/overlayfs/dir.c index bc1758a160f6..b3fc0a35bf62 100644 --- a/fs/overlayfs/dir.c +++ b/fs/overlayfs/dir.c | |||
@@ -719,7 +719,6 @@ static int ovl_rename2(struct inode *olddir, struct dentry *old, | |||
719 | struct dentry *trap; | 719 | struct dentry *trap; |
720 | bool old_opaque; | 720 | bool old_opaque; |
721 | bool new_opaque; | 721 | bool new_opaque; |
722 | bool new_create = false; | ||
723 | bool cleanup_whiteout = false; | 722 | bool cleanup_whiteout = false; |
724 | bool overwrite = !(flags & RENAME_EXCHANGE); | 723 | bool overwrite = !(flags & RENAME_EXCHANGE); |
725 | bool is_dir = d_is_dir(old); | 724 | bool is_dir = d_is_dir(old); |
@@ -872,7 +871,6 @@ static int ovl_rename2(struct inode *olddir, struct dentry *old, | |||
872 | goto out_dput; | 871 | goto out_dput; |
873 | } | 872 | } |
874 | } else { | 873 | } else { |
875 | new_create = true; | ||
876 | if (!d_is_negative(newdentry) && | 874 | if (!d_is_negative(newdentry) && |
877 | (!new_opaque || !ovl_is_whiteout(newdentry))) | 875 | (!new_opaque || !ovl_is_whiteout(newdentry))) |
878 | goto out_dput; | 876 | goto out_dput; |