Changeset 132ab5d1 in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (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 commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_lookup.c

    r8bfb163 r132ab5d1  
    197197       
    198198        rc = async_data_write_start(exch, component, str_size(component) + 1);
    199         sysarg_t orig_rc;
     199        int orig_rc;
    200200        async_wait_for(req, &orig_rc);
    201201        vfs_exchange_release(exch);
     
    213213        assert(result);
    214214       
    215         sysarg_t rc;
     215        int rc;
    216216        ipc_call_t answer;
    217217        async_exch_t *exch = vfs_exchange_grab(base->fs_handle);
     
    222222        vfs_exchange_release(exch);
    223223       
    224         if ((int) rc < 0)
    225                 return (int) rc;
     224        if (rc != EOK)
     225                return rc;
    226226       
    227227        unsigned last = *pfirst + *plen;
     
    229229        *plen = last - *pfirst;
    230230       
    231         result->triplet.fs_handle = (fs_handle_t) rc;
    232         result->triplet.service_id = (service_id_t) IPC_GET_ARG1(answer);
     231        result->triplet.fs_handle = (fs_handle_t) IPC_GET_ARG1(answer);
     232        result->triplet.service_id = base->service_id;
    233233        result->triplet.index = (fs_index_t) IPC_GET_ARG2(answer);
    234234        result->size = MERGE_LOUP32(IPC_GET_ARG4(answer), IPC_GET_ARG5(answer));
Note: See TracChangeset for help on using the changeset viewer.