tmpfs: drop a redundant NULL check in tmpfs_alloc_vp

This commit is contained in:
Mateusz Guzik 2021-05-29 03:10:53 +02:00
parent 7fbeaf33b8
commit 439d942b9e

View File

@ -831,7 +831,7 @@ tmpfs_alloc_vp(struct mount *mp, struct tmpfs_node *node, int lkflag,
* Make sure the vnode is still there after
* getting the interlock to avoid racing a free.
*/
if (node->tn_vnode == NULL || node->tn_vnode != vp) {
if (node->tn_vnode != vp) {
vput(vp);
TMPFS_NODE_LOCK(node);
goto loop;