summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-20 16:26:12 +0000
committerphk <phk@FreeBSD.org>2002-09-20 16:26:12 +0000
commitc3d0986c83df48603e7d209d6a8dceeeed09be04 (patch)
treebc984f6be475d16e92a57eaa68527ab200dbd32c /sys/contrib
parentc0477d28f4c17fd9e0f6dec142347b99ea64bd67 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/dev/fla/fla.c2
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;
OpenPOWER on IntegriCloud