Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Aug 2022 10:46:35 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: eb9a1f9c687d - main - vfs: plug dead store in vn_io_fault1
Message-ID:  <202208161046.27GAkZHj080883@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=eb9a1f9c687d0df1554a5699a6895cee62209c87

commit eb9a1f9c687d0df1554a5699a6895cee62209c87
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-08-16 10:44:31 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2022-08-16 10:46:20 +0000

    vfs: plug dead store in vn_io_fault1
    
    Reported by:    clang --analyze
---
 sys/kern/vfs_vnops.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 29851dcfaaa2..60a1bd7302a2 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1393,7 +1393,6 @@ vn_io_fault1(struct vnode *vp, struct uio *uio, struct vn_io_fault_args *args,
 			error = EFAULT;
 			break;
 		}
-		cnt = atop(end - trunc_page(addr));
 		/*
 		 * A perfectly misaligned address and length could cause
 		 * both the start and the end of the chunk to use partial



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