From c5d1f9a45d66a1662aa524c87ef3d2974fae6fa8 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 12 Nov 2003 05:21:06 +0000 Subject: Fix a harmless typo (use of res instead of rle: if rle is NULL, we'd still get a panic, just not a nice message) and update to new __FBSDID. Submitted by: charnier@ --- sys/dev/pccbb/pccbb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/dev/pccbb') diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index b338101..c213bb4 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -25,8 +25,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ /* @@ -74,6 +72,9 @@ * * David Cross: Author of the initial ugly hack for a specific cardbus card */ +#include +__FBSDID("$FreeBSD$"); + #include #include #include @@ -337,7 +338,7 @@ cbb_insert_res(struct cbb_softc *sc, struct resource *res, int type, * it later. */ rle = malloc(sizeof(struct cbb_reslist), M_DEVBUF, M_NOWAIT); - if (!res) + if (rle == NULL) panic("cbb_cardbus_alloc_resource: can't record entry!"); rle->res = res; rle->type = type; -- cgit v1.1