Ignore:
Timestamp:
2018-03-22T06:49:35Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77f0a1d
Parents:
3e242d2
git-author:
Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
git-committer:
Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/adb/cuda_adb/cuda_adb.c

    r3e242d2 ra46e56b  
    198198
    199199/** Device connection handler */
    200 static void cuda_dev_connection(cap_call_handle_t iid, ipc_call_t *icall, void *arg)
     200static void cuda_dev_connection(cap_call_handle_t icall_handle,
     201    ipc_call_t *icall, void *arg)
    201202{
    202203        adb_dev_t *dev = (adb_dev_t *) ddf_fun_data_get((ddf_fun_t *) arg);
    203         cap_call_handle_t callid;
     204        cap_call_handle_t chandle;
    204205        ipc_call_t call;
    205206        sysarg_t method;
    206207
    207208        /* Answer the IPC_M_CONNECT_ME_TO call. */
    208         async_answer_0(iid, EOK);
     209        async_answer_0(icall_handle, EOK);
    209210
    210211        while (true) {
    211                 callid = async_get_call(&call);
     212                chandle = async_get_call(&call);
    212213                method = IPC_GET_IMETHOD(call);
    213214
    214215                if (!method) {
    215216                        /* The other side has hung up. */
    216                         async_answer_0(callid, EOK);
     217                        async_answer_0(chandle, EOK);
    217218                        return;
    218219                }
     
    222223                if (sess != NULL) {
    223224                        dev->client_sess = sess;
    224                         async_answer_0(callid, EOK);
     225                        async_answer_0(chandle, EOK);
    225226                } else {
    226                         async_answer_0(callid, EINVAL);
     227                        async_answer_0(chandle, EINVAL);
    227228                }
    228229        }
Note: See TracChangeset for help on using the changeset viewer.