From c6b24d496893da29bf2944b005cb056915be6dab Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 29 Oct 2004 11:09:21 +0000 Subject: [PATCH] No point in setting si_bsize_phys anymore, nobody reads it. Use bioq_takefirst(). --- sys/dev/mcd/mcd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index 4f09744c5287..0af98c887d68 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -257,8 +257,6 @@ mcdopen(struct cdev *dev, int flags, int fmt, struct thread *td) return (ENXIO); } - dev->si_bsize_phys = sc->data.blksize; - sc->data.openflags = 1; sc->data.partflags |= MCDREADRAW; sc->data.flags |= MCDVALID; @@ -347,11 +345,10 @@ mcd_start(struct mcd_softc *sc) return; } - bp = bioq_first(&sc->data.head); + bp = bioq_takefirst(&sc->data.head); if (bp != 0) { /* block found to process, dequeue */ /*MCD_TRACE("mcd_start: found block bp=0x%x\n",bp,0,0,0);*/ - bioq_remove(&sc->data.head, bp); sc->data.flags |= MCDMBXBSY; splx(s); } else {