diff options
author | phk <phk@FreeBSD.org> | 2002-09-20 16:26:12 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-20 16:26:12 +0000 |
commit | c3d0986c83df48603e7d209d6a8dceeeed09be04 (patch) | |
tree | bc984f6be475d16e92a57eaa68527ab200dbd32c | |
parent | c0477d28f4c17fd9e0f6dec142347b99ea64bd67 (diff) | |
download | FreeBSD-src-c3d0986c83df48603e7d209d6a8dceeeed09be04.zip FreeBSD-src-c3d0986c83df48603e7d209d6a8dceeeed09be04.tar.gz |
Don't call dkunit() to find our unit number, it is in our softc.
Sponsored by: DARPA & NAI Labs.
-rw-r--r-- | sys/contrib/dev/fla/fla.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c index 6de9572..610f1ac 100644 --- a/sys/contrib/dev/fla/fla.c +++ b/sys/contrib/dev/fla/fla.c @@ -209,7 +209,7 @@ flastrategy(struct bio *bp) devstat_start_transaction(&sc->stats); bp->bio_resid = bp->bio_bcount; - unit = dkunit(bp->bio_dev); + unit = sc->unit; if (bp->bio_cmd == BIO_DELETE) what = DOC2K_ERASE; |