if (strcmp(pa->card->cis1_info[j], rpp->cis[j]) != 0)
if (pa->card->cis1_info[j] && strcmp(pa->card->cis1_info[j], rpp->cis[j]) != 0)
static struct	rln_pcmcia_product * rln_pcmcia_product_lookup     __P((struct pcmcia_attach_args *));static void	rln_pcmcia_attach __P((struct device *, struct device *, void *));static int	rln_pcmcia_detach __P((struct device *, int));static int	rln_pcmcia_activate __P((struct device *, enum devact));static int	rlnintr_pcmcia __P((void *arg));struct cfattach rln_pcmcia_ca = {	sizeof(struct rln_pcmcia_softc), rln_pcmcia_match, rln_pcmcia_attach,	rln_pcmcia_detach, rln_pcmcia_activate};static struct rln_pcmcia_product {	u_int16_t	manufacturer;	u_int16_t	product;	const char	*cis[4];	u_int8_t	flags;} rln_pcmcia_products[] = {	/* Digital RoamAbout 2400 FH, from d@openbsd.org */	{ PCMCIA_VENDOR_PROXIM,	  PCMCIA_PRODUCT_PROXIM_ROAMABOUT_2400FH,	  PCMCIA_CIS_PROXIM_ROAMABOUT_2400FH,	  0 },	/* AMP Wireless, from jimduchek@ou.edu */	{ PCMCIA_VENDOR_COMPEX,	  PCMCIA_PRODUCT_COMPEX_AMP_WIRELESS,	  PCMCIA_CIS_COMPEX_AMP_WIRELESS,	  0 },	/* Proxim RangeLAN2 7401, from louis@bertrandtech.on.ca */	{ PCMCIA_VENDOR_PROXIM,	  PCMCIA_PRODUCT_PROXIM_RANGELAN2_7401,	  PCMCIA_CIS_PROXIM_RANGELAN2_7401,	  0 },	/* Generic and clone cards matched by CIS alone */	{ PCMCIA_VENDOR_INVALID,	  PCMCIA_PRODUCT_INVALID,	  PCMCIA_CIS_PROXIM_RL2_7200,	  0 },	{ PCMCIA_VENDOR_INVALID,	  PCMCIA_PRODUCT_INVALID,	  PCMCIA_CIS_PROXIM_RL2_7400,	  0 },	{ PCMCIA_VENDOR_INVALID,	  PCMCIA_PRODUCT_INVALID,	  PCMCIA_CIS_PROXIM_SYMPHONY,	  0 }};#define NPRODUCTS (sizeof rln_pcmcia_products / sizeof rln_pcmcia_products[0])/* Match the card information with known card types */static struct rln_pcmcia_product *rln_pcmcia_product_lookup(pa)	struct pcmcia_attach_args *pa;{	int i, j;	struct rln_pcmcia_product *rpp;	for (i = 0; i < NPRODUCTS; i++) {		rpp = &rln_pcmcia_products[i];		if (rpp->manufacturer != PCMCIA_VENDOR_INVALID &&		    rpp->manufacturer != pa->manufacturer)			continue;		if (rpp->product != PCMCIA_PRODUCT_INVALID &&		    rpp->product != pa->product)			continue;		for (j = 0; j < 4; j++) {			if (rpp->cis[j] == NULL)				return rpp;			if (strcmp(pa->card->cis1_info[j], rpp->cis[j]) != 0)				break;		}		if (j == 4)			return rpp;	}	return NULL;}