Changes in uspace/drv/uhci-hcd/iface.c [17ceb72:a9f91cd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/iface.c
r17ceb72 ra9f91cd 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 /** @addtogroup drvusbuhcihc28 /** @addtogroup usb 29 29 * @{ 30 30 */ 31 31 /** @file 32 * @brief UHCI driver hc interface implementation32 * @brief UHCI driver 33 33 */ 34 34 #include <ddf/driver.h> … … 161 161 return ENOMEM; 162 162 batch_interrupt_out(batch); 163 const int ret = uhci_hc_schedule(hc, batch);164 if (ret != EOK) {165 batch_dispose(batch);166 return ret;167 }168 163 return EOK; 169 164 } … … 197 192 return ENOMEM; 198 193 batch_interrupt_in(batch); 199 const int ret = uhci_hc_schedule(hc, batch);200 if (ret != EOK) {201 batch_dispose(batch);202 return ret;203 }204 194 return EOK; 205 195 } … … 234 224 return ENOMEM; 235 225 batch_bulk_out(batch); 236 const int ret = uhci_hc_schedule(hc, batch);237 if (ret != EOK) {238 batch_dispose(batch);239 return ret;240 }241 226 return EOK; 242 227 } … … 270 255 return ENOMEM; 271 256 batch_bulk_in(batch); 272 const int ret = uhci_hc_schedule(hc, batch);273 if (ret != EOK) {274 batch_dispose(batch);275 return ret;276 }277 257 return EOK; 278 258 } … … 313 293 device_keeper_reset_if_need(&hc->device_manager, target, setup_data); 314 294 batch_control_write(batch); 315 const int ret = uhci_hc_schedule(hc, batch);316 if (ret != EOK) {317 batch_dispose(batch);318 return ret;319 }320 295 return EOK; 321 296 } … … 352 327 return ENOMEM; 353 328 batch_control_read(batch); 354 const int ret = uhci_hc_schedule(hc, batch);355 if (ret != EOK) {356 batch_dispose(batch);357 return ret;358 }359 329 return EOK; 360 330 }
Note:
See TracChangeset
for help on using the changeset viewer.