PERFORCE change 154038 for review

Kevin Lo kevlo at FreeBSD.org
Thu Dec 4 00:22:31 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=154038

Change 154038 by kevlo at 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]);


More information about the p4-projects mailing list