From 83967b2fba6aec1dc6dff0fb5e5ae20f22b60b22 Mon Sep 17 00:00:00 2001 From: briggs Date: Sun, 21 Oct 2007 12:59:33 +0000 Subject: Use AAC_PREALLOCATE_FIBS with the softc as a parameter to catch up with revision 1.10 of aacvar.h. --- sys/dev/ic/aac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c index a7068d3d9ec..b6dfc0cf6e8 100644 --- a/sys/dev/ic/aac.c +++ b/sys/dev/ic/aac.c @@ -1,4 +1,4 @@ -/* $NetBSD: aac.c,v 1.36 2007/10/19 11:59:44 ad Exp $ */ +/* $NetBSD: aac.c,v 1.37 2007/10/21 12:59:33 briggs Exp $ */ /*- * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc. @@ -77,7 +77,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: aac.c,v 1.36 2007/10/19 11:59:44 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: aac.c,v 1.37 2007/10/21 12:59:33 briggs Exp $"); #include #include @@ -642,7 +642,7 @@ aac_init(struct aac_softc *sc) goto bail_out; } state++; - while (sc->sc_total_fibs < AAC_PREALLOCATE_FIBS) { + while (sc->sc_total_fibs < AAC_PREALLOCATE_FIBS(sc)) { if (aac_alloc_commands(sc) != 0) break; } -- cgit