aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mcd
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-10-29 11:09:21 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-10-29 11:09:21 +0000
commitf574ac87d1446fc76f8c6bc9fadb30e0aa41f254 (patch)
tree142f3654c037779c4d4b45186e9819e5525624bc /sys/dev/mcd
parent268315b6282e261f9af58138e8fda232448bfc45 (diff)
downloadsrc-f574ac87d1446fc76f8c6bc9fadb30e0aa41f254.tar.gz
src-f574ac87d1446fc76f8c6bc9fadb30e0aa41f254.zip
No point in setting si_bsize_phys anymore, nobody reads it.
Use bioq_takefirst().
Notes
Notes: svn path=/head/; revision=137045
Diffstat (limited to 'sys/dev/mcd')
-rw-r--r--sys/dev/mcd/mcd.c5
1 files changed, 1 insertions, 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 {