git: eb9a1f9c687d - main - vfs: plug dead store in vn_io_fault1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Aug 2022 10:46:35 UTC
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