fixed uninitialized variable warnings
Modified: trunk/reactos/drivers/usb/miniport/common/fdo.c
Modified: trunk/reactos/drivers/usb/usbhub/fdo.c
Modified: trunk/reactos/drivers/usb/usbport/message.c
_____
Modified: trunk/reactos/drivers/usb/miniport/common/fdo.c
--- trunk/reactos/drivers/usb/miniport/common/fdo.c 2005-09-25
17:16:03 UTC (rev 18058)
+++ trunk/reactos/drivers/usb/miniport/common/fdo.c 2005-09-25
17:21:45 UTC (rev 18059)
@@ -227,7 +227,7 @@
{
case BusRelations:
{
- PDEVICE_RELATIONS
DeviceRelations;
+ PDEVICE_RELATIONS
DeviceRelations = NULL;
DPRINT("USBMP: IRP_MJ_PNP /
IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n");
Status =
UsbMpFdoQueryBusRelations(DeviceObject, &DeviceRelations);
Information =
(ULONG_PTR)DeviceRelations;
_____
Modified: trunk/reactos/drivers/usb/usbhub/fdo.c
--- trunk/reactos/drivers/usb/usbhub/fdo.c 2005-09-25 17:16:03 UTC
(rev 18058)
+++ trunk/reactos/drivers/usb/usbhub/fdo.c 2005-09-25 17:21:45 UTC
(rev 18059)
@@ -252,7 +252,7 @@
{
case BusRelations:
{
- PDEVICE_RELATIONS
DeviceRelations;
+ PDEVICE_RELATIONS
DeviceRelations = NULL;
DPRINT("Usbhub: IRP_MJ_PNP /
IRP_MN_QUERY_DEVICE_RELATIONS / BusRelations\n");
Status =
UsbhubFdoQueryBusRelations(DeviceObject, &DeviceRelations);
Information =
(ULONG_PTR)DeviceRelations;
_____
Modified: trunk/reactos/drivers/usb/usbport/message.c
--- trunk/reactos/drivers/usb/usbport/message.c 2005-09-25 17:16:03 UTC
(rev 18058)
+++ trunk/reactos/drivers/usb/usbport/message.c 2005-09-25 17:21:45 UTC
(rev 18059)
@@ -569,7 +569,7 @@
int usb_get_descriptor(struct usb_device *dev, unsigned char type,
unsigned char index, void *buf, int size)
{
int i = 5;
- int result;
+ int result = 0;
memset(buf,0,size); // Make sure we parse really received
data
Show replies by date