From: Miklos Szeredi Date: Mon, 21 Mar 2016 16:31:46 +0000 (+0100) Subject: ovl: cleanup unused var in rename2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6986c012faa480fb0fda74eaae9abb22f7ad1004;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ovl: cleanup unused var in rename2 Signed-off-by: Miklos Szeredi --- 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, 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); @@ -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;