Changeset ff381a7 in mainline for uspace/srv/devman/driver.c


Ignore:
Timestamp:
2015-11-02T20:54:19Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8513177
Parents:
3feeab2 (diff), 5265eea4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/driver.c

    r3feeab2 rff381a7  
    3636#include <sys/stat.h>
    3737#include <io/log.h>
    38 #include <ipc/driver.h>
    3938#include <loc.h>
    4039#include <str_error.h>
     
    143142        /* Check whether the driver's binary exists. */
    144143        struct stat s;
    145         if (stat(drv->binary_path, &s) == ENOENT) { /* FIXME!! */
     144        if (stat(drv->binary_path, &s) != 0) {
    146145                log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.",
    147146                    drv->binary_path);
     
    573572       
    574573        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) {
    582581        case EOK:
    583582                dev->state = DEVICE_USABLE;
     
    592591       
    593592        dev->passed_to_driver = true;
    594 
    595         return;
    596593}
    597594
Note: See TracChangeset for help on using the changeset viewer.