The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=439d942b9e7ab4df2bb7a628602069d31788df17
commit 439d942b9e7ab4df2bb7a628602069d31788df17 Author: Mateusz Guzik <[email protected]> AuthorDate: 2021-05-29 01:10:53 +0000 Commit: Mateusz Guzik <[email protected]> CommitDate: 2021-05-29 22:04:10 +0000 tmpfs: drop a redundant NULL check in tmpfs_alloc_vp --- sys/fs/tmpfs/tmpfs_subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index df5bc12047be..322641b5b853 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -831,7 +831,7 @@ loop: * 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; _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
