From 412781c7d49be40a23cf52e3d2c497ca6915eb76 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 8 Oct 2021 08:34:09 +0000 Subject: [PATCH] curproc can't be NULL here. So simplify code accordingly. OK mpi@ --- sys/ufs/mfs/mfs_vnops.c | 5 ++--- 1 file 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); -- 2.20.1