Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 May 2021 22:04:23 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 439d942b9e7a - main - tmpfs: drop a redundant NULL check in tmpfs_alloc_vp
Message-ID:  <202105292204.14TM4Ng4026298@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=439d942b9e7ab4df2bb7a628602069d31788df17

commit 439d942b9e7ab4df2bb7a628602069d31788df17
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-05-29 01:10:53 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105292204.14TM4Ng4026298>