diff --git a/fs/namei.c b/fs/namei.c index 293e28318c48..885b0e93ee96 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -4759,8 +4759,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);