Skip to content
Snippets Groups Projects
Commit 81aacf3c authored by Pekka Enberg's avatar Pekka Enberg
Browse files

vfs: Simplify sys_link() unwinding


We can safely use the same function exit points for both successful and
error cases.

Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent a2966cc6
No related branches found
No related tags found
No related merge requests found
......@@ -733,13 +733,6 @@ sys_link(char *oldpath, char *newpath)
drele(newdp);
goto out1;
}
vn_unlock(newdirdp->d_vnode);
drele(newdirdp);
vn_unlock(vp);
drele(olddp);
return 0;
out1:
vn_unlock(newdirdp->d_vnode);
drele(newdirdp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment