fixed uninitialized variable warnings

svn path=/trunk/; revision=18059
This commit is contained in:
Thomas Bluemel 2005-09-25 17:21:45 +00:00
parent b078f93c83
commit 36b54a2e7c
3 changed files with 3 additions and 3 deletions

View file

@ -227,7 +227,7 @@ UsbMpPnpFdo(
{
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;

View file

@ -252,7 +252,7 @@ UsbhubPnpFdo(
{
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;

View file

@ -569,7 +569,7 @@ void usb_sg_cancel (struct usb_sg_request *io)
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