Skip to content

Commit

Permalink
ovl: cleanup unused var in rename2
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Miklos Szeredi authored and Miklos Szeredi committed Mar 21, 2016
1 parent 56656e9 commit 6986c01
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/overlayfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,6 @@ static int ovl_rename2(struct inode *olddir, struct dentry *old,
struct dentry *trap;
bool old_opaque;
bool new_opaque;
bool new_create = false;
bool cleanup_whiteout = false;
bool overwrite = !(flags & RENAME_EXCHANGE);
bool is_dir = d_is_dir(old);
Expand Down Expand Up @@ -872,7 +871,6 @@ static int ovl_rename2(struct inode *olddir, struct dentry *old,
goto out_dput;
}
} else {
new_create = true;
if (!d_is_negative(newdentry) &&
(!new_opaque || !ovl_is_whiteout(newdentry)))
goto out_dput;
Expand Down

0 comments on commit 6986c01

Please sign in to comment.