vfs: plug dead store in vn_io_fault1

Reported by:	clang --analyze
This commit is contained in:
Mateusz Guzik 2022-08-16 10:44:31 +00:00
parent 31ee3a33aa
commit eb9a1f9c68

View File

@ -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