Changes in uspace/srv/devman/driver.c [1c635d6:6afc9d7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/driver.c
r1c635d6 r6afc9d7 36 36 #include <sys/stat.h> 37 37 #include <io/log.h> 38 #include <ipc/driver.h>39 38 #include <loc.h> 40 39 #include <str_error.h> … … 143 142 /* Check whether the driver's binary exists. */ 144 143 struct stat s; 145 if (stat(drv->binary_path, &s) == ENOENT) { /* FIXME!! */144 if (stat(drv->binary_path, &s) != 0) { 146 145 log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.", 147 146 drv->binary_path); … … 573 572 574 573 if (rc != EOK) { 575 /* TODO handle error */576 } 577 578 /* Wait for answer from the driver. */579 async_wait_for(req, &rc);580 581 switch (rc) {574 async_forget(req); 575 } else { 576 /* Wait for answer from the driver. */ 577 async_wait_for(req, &rc); 578 } 579 580 switch (rc) { 582 581 case EOK: 583 582 dev->state = DEVICE_USABLE; … … 592 591 593 592 dev->passed_to_driver = true; 594 595 return;596 593 } 597 594
Note:
See TracChangeset
for help on using the changeset viewer.