summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-10-08 08:34:10 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-10-08 08:34:10 +0000
commitb9084950a58f76a64a14e5d462658101e2430b60 (patch)
tree461bc97ea6fef8bdcf66deca97ca6e283803aace /sys/ufs
parent1bcb4b3370a27d55bbb44b3b44fd0ad790140962 (diff)
curproc can't be NULL here. So simplify code accordingly.
OK mpi@
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/mfs/mfs_vnops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c
index ad0ff3dee23..98484b064db 100644
--- a/sys/ufs/mfs/mfs_vnops.c
+++ b/sys/ufs/mfs/mfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfs_vnops.c,v 1.56 2021/10/02 08:51:41 semarie Exp $ */
+/* $OpenBSD: mfs_vnops.c,v 1.57 2021/10/08 08:34:09 claudio Exp $ */
/* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */
/*
@@ -125,13 +125,12 @@ mfs_strategy(void *v)
struct buf *bp = ap->a_bp;
struct mfsnode *mfsp;
struct vnode *vp;
- struct proc *p = curproc;
if (!vfinddev(bp->b_dev, VBLK, &vp) || vp->v_usecount == 0)
panic("mfs_strategy: bad dev");
mfsp = VTOMFS(vp);
- if (p != NULL && mfsp->mfs_tid == p->p_tid) {
+ if (mfsp->mfs_tid == curproc->p_tid) {
mfs_doio(mfsp, bp);
} else {
bufq_queue(&mfsp->mfs_bufq, bp);