From c3d0986c83df48603e7d209d6a8dceeeed09be04 Mon Sep 17 00:00:00 2001 From: phk 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 6de957263119..610f1ac05955 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;