Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2003 22:35:34 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        ler@lerctr.org
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: wierd(to me) messages from setup of (supported) modem card. 
Message-ID:  <20030313.223534.51689435.imp@bsdimp.com>
In-Reply-To: <8770000.1047618034@lerlaptop.lerctr.org>
References:  <1760000.1047617641@lerlaptop.lerctr.org> <20030313.215824.98164738.imp@bsdimp.com> <8770000.1047618034@lerlaptop.lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
So what does

Index: readcis.c
===================================================================
RCS file: /cache/ncvs/src/usr.sbin/pccard/pccardd/readcis.c,v
retrieving revision 1.23
diff -u -r1.23 readcis.c
--- readcis.c	20 Feb 2002 14:48:23 -0000	1.23
+++ readcis.c	14 Mar 2003 05:33:18 -0000
@@ -691,7 +691,7 @@
 			hss = hss_check(tp->data);
 #endif	/* HSSYNTH */
 		}
-		if (tinfo == NULL || (tinfo->length != 255 && tinfo->length > length)) {
+		if (tinfo != NULL && (tinfo->length != 255 && tinfo->length > length)) {
 			printf("code %s ignored\n", tuple_name(code));
 			tp->code = CIS_NULL;
 		}
@@ -772,7 +772,6 @@
 	for (tp = tuple_info; tp->name; tp++)
 		if (tp->code == code)
 			return (tp);
-	printf("Code %d not found\n", code);
 	return (0);
 }
 

Do for you?

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030313.223534.51689435.imp>