From f6d714b1eacb83540d2260905a351ffadbd018ac Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 19 Dec 2014 05:48:36 +0000 Subject: [PATCH] if you really must look inside the pool to decide if you've called pool_init already, the pr_size field is the least worst field to peek at. --- sys/dev/cardbus/cardslot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/cardbus/cardslot.c b/sys/dev/cardbus/cardslot.c index 661467a3919..a1f46dc0ced 100644 --- a/sys/dev/cardbus/cardslot.c +++ b/sys/dev/cardbus/cardslot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cardslot.c,v 1.16 2013/10/30 08:47:20 mpi Exp $ */ +/* $OpenBSD: cardslot.c,v 1.17 2014/12/19 05:48:36 tedu Exp $ */ /* $NetBSD: cardslot.c,v 1.9 2000/03/22 09:35:06 haya Exp $ */ /* @@ -103,7 +103,7 @@ cardslotattach(struct device *parent, struct device *self, void *aux) struct cardbus_softc *csc = NULL; struct pcmcia_softc *psc = NULL; - if (cardsloteventpool.pr_align == 0) + if (cardsloteventpool.pr_size == 0) pool_init(&cardsloteventpool, sizeof(struct cardslot_event), 0, 0, 0, "cardslot", NULL); -- 2.20.1