Coverity CID 773: Add a KASSERT to appease coverity.

This commit is contained in:
christos 2006-04-14 17:42:29 +00:00
parent c6bb3943dd
commit af27d5132b
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcmcia_cis_quirks.c,v 1.26 2005/12/11 12:23:23 christos Exp $ */
/* $NetBSD: pcmcia_cis_quirks.c,v 1.27 2006/04/14 17:42:29 christos Exp $ */
/*
* Copyright (c) 1998 Marc Horowitz. All rights reserved.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis_quirks.c,v 1.26 2005/12/11 12:23:23 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis_quirks.c,v 1.27 2006/04/14 17:42:29 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -320,6 +320,7 @@ match:
if (cfe == NULL)
panic("pcmcia_check_cis_quirks: malloc cfe");
*cfe = *quirk->cfe;
KASSERT(pf != NULL);
SIMPLEQ_INSERT_TAIL(&pf->cfe_head, cfe, cfe_list);
nomatch:;