dlist_for_each_data(sudev_list, sudev, struct sysfs_device) { edev = usbip_exported_device_new(sudev->path); if (!edev) { dbg("usbip_exported_device_new failed"); continue; } dlist_unshift(host_driver->edev_list, edev); host_driver->ndevs++; }
dlist_for_each_data(sudev_list, sudev, struct sysfs_device) { struct usbip_exported_device *edev; edev = usbip_exported_device_new(sudev->path); if (!edev) { err("usbip_exported_device new"); continue; } dlist_unshift(stub_driver->edev_list, (void *) edev); stub_driver->ndevs++; }