tmpfs: drop a redundant NULL check in tmpfs_alloc_vp
This commit is contained in:
parent
7fbeaf33b8
commit
439d942b9e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user