Changes in uspace/drv/usbhub/usbhub.c [140c033:d70e0a3c] in mainline
- File:
-
- 1 edited
-
uspace/drv/usbhub/usbhub.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r140c033 rd70e0a3c 243 243 dprintf(USB_LOG_LEVEL_ERROR, "failed when receiving hub descriptor, badcode = %d",opResult); 244 244 free(serialized_descriptor); 245 free(result); 246 return NULL; 245 return result; 247 246 } 248 247 dprintf(USB_LOG_LEVEL_DEBUG2, "deserializing descriptor"); … … 250 249 if(descriptor==NULL){ 251 250 dprintf(USB_LOG_LEVEL_WARNING, "could not deserialize descriptor "); 252 free(result);253 return NULL;251 result->port_count = 1;///\TODO this code is only for debug!!! 252 return result; 254 253 } 255 254 … … 287 286 288 287 usb_hub_info_t * hub_info = usb_create_hub_info(dev); 289 if(!hub_info){290 return EINTR;291 }292 288 293 289 int opResult; … … 298 294 opResult = usb_hub_process_configuration_descriptors(hub_info); 299 295 if(opResult != EOK){ 300 dprintf(USB_LOG_LEVEL_ERROR,"could not get con figuration descriptors, %d",296 dprintf(USB_LOG_LEVEL_ERROR,"could not get condiguration descriptors, %d", 301 297 opResult); 302 298 return opResult;
Note:
See TracChangeset
for help on using the changeset viewer.
