From 78bc4b68cc7e1d473e703d08509d9b79d5bcc5bd Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 20 Sep 2002 16:26:12 +0000 Subject: [PATCH] Don't call dkunit() to find our unit number, it is in our softc. Sponsored by: DARPA & NAI Labs. --- sys/contrib/dev/fla/fla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c index 6de95726311..610f1ac0595 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;