diff --git a/fs/namei.c b/fs/namei.c index 6a5e26a529e1..7e5cb92feab3 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -4872,8 +4872,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);