Merge tag 'drm-misc-fixes-2023-08-24' of git://anongit.freedesktop.org/drm/drm-misc...
[linux-2.6-microblaze.git] / fs / namei.c
index 91171da..e56ff39 100644 (file)
@@ -4874,8 +4874,7 @@ int vfs_rename(struct renamedata *rd)
                        d_exchange(old_dentry, new_dentry);
        }
 out:
-       if (source)
-               inode_unlock(source);
+       inode_unlock(source);
        if (target)
                inode_unlock(target);
        dput(new_dentry);