Changes in uspace/drv/uhci-hcd/iface.c [563ead9:df25ab6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/uhci-hcd/iface.c
r563ead9 rdf25ab6 39 39 40 40 #include "iface.h" 41 #include "batch.h"42 41 #include "hc.h" 43 42 … … 123 122 return EOK; 124 123 } 125 /*----------------------------------------------------------------------------*/ 124 126 125 /** Find device handle by address interface function. 127 126 * … … 137 136 hc_t *hc = fun_to_hc(fun); 138 137 assert(hc); 139 constbool found =138 bool found = 140 139 usb_device_keeper_find_by_address(&hc->manager, address, handle); 141 140 return found ? EOK : ENOENT; 142 141 } 142 143 143 /*----------------------------------------------------------------------------*/ 144 144 /** Release address interface function … … 164 164 size_t max_packet_size, unsigned int interval) 165 165 { 166 assert(fun);167 166 hc_t *hc = fun_to_hc(fun); 168 167 assert(hc); … … 184 183 usb_endpoint_t endpoint, usb_direction_t direction) 185 184 { 186 assert(fun);187 185 hc_t *hc = fun_to_hc(fun); 188 186 assert(hc); … … 213 211 if (ret != EOK) 214 212 return ret; 215 assert(batch);216 assert(hc);217 213 batch_interrupt_out(batch); 218 214 ret = hc_schedule(hc, batch); … … 243 239 if (ret != EOK) 244 240 return ret; 245 assert(batch);246 assert(hc);247 241 batch_interrupt_in(batch); 248 242 ret = hc_schedule(hc, batch); … … 273 267 if (ret != EOK) 274 268 return ret; 275 assert(batch);276 assert(hc);277 269 batch_bulk_out(batch); 278 270 ret = hc_schedule(hc, batch); … … 303 295 if (ret != EOK) 304 296 return ret; 305 assert(batch);306 assert(hc);307 297 batch_bulk_in(batch); 308 298 ret = hc_schedule(hc, batch); … … 337 327 if (ret != EOK) 338 328 return ret; 339 assert(batch);340 assert(hc);341 329 usb_endpoint_manager_reset_if_need(&hc->ep_manager, target, setup_data); 342 330 batch_control_write(batch); … … 372 360 if (ret != EOK) 373 361 return ret; 374 assert(batch);375 assert(hc);376 362 batch_control_read(batch); 377 363 ret = hc_schedule(hc, batch);
Note:
See TracChangeset
for help on using the changeset viewer.