Changeset 5917859c in mainline
- Timestamp:
- 2011-10-14T22:55:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 49bd7ae2
- Parents:
- aaf835d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devdrv.c
raaf835d r5917859c 333 333 int rc; 334 334 335 size_t pipe_count = count_other_pipes(endpoints);335 const size_t pipe_count = count_other_pipes(endpoints); 336 336 if (pipe_count == 0) { 337 *pipes_count_ptr = pipe_count; 337 338 *pipes_ptr = NULL; 338 339 return EOK; … … 445 446 { 446 447 assert(dev != NULL); 447 assert(((pipes != NULL) && (pipes_count > 0))448 || ((pipes == NULL) && (pipes_count == 0)));449 448 450 449 if (pipes_count == 0) { 450 assert(pipes == NULL); 451 451 return EOK; 452 452 } 453 assert(pipes != NULL); 453 454 454 455 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.