Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Dec 2008 08:22:31 GMT
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 154038 for review
Message-ID:  <200812040822.mB48MVfI016872@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154038

Change 154038 by kevlo@kevlo_wsl on 2008/12/04 08:21:31

	Initialize the variable error to avoid warnings

Affected files ...

.. //depot/projects/vap/sys/dev/usb/if_urtw.c#3 edit

Differences ...

==== //depot/projects/vap/sys/dev/usb/if_urtw.c#3 (text+ko) ====

@@ -757,7 +757,7 @@
 	uint8_t *buf;
 	uint16_t data16;
 	usb_device_request_t *req;
-	usbd_status error;
+	usbd_status error = 0;
 
 	data16 = *data;
 	req = (usb_device_request_t *)malloc(sizeof(usb_device_request_t),
@@ -1148,7 +1148,7 @@
 urtw_eprom_sendbits(struct urtw_softc *sc, int16_t *buf, int buflen)
 {
 	int i = 0;
-	usbd_status error;
+	usbd_status error = 0;
 
 	for (i = 0; i < buflen; i++) {
 		error = urtw_eprom_writebit(sc, buf[i]);



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