Changeset 338d54a7 in mainline for uspace/drv/hid/atkbd/atkbd.c


Ignore:
Timestamp:
2018-03-10T22:55:07Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
850fd32
Parents:
5ef16903
Message:

Gratuitous nested block makes ccheck sad.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/atkbd/atkbd.c

    r5ef16903 r338d54a7  
    302302        const sysarg_t method = IPC_GET_IMETHOD(*icall);
    303303        at_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun));
     304        async_sess_t *sess;
    304305
    305306        switch (method) {
    306         case KBDEV_SET_IND: {
     307        case KBDEV_SET_IND:
    307308                async_answer_0(icallid, ENOTSUP);
    308309                break;
    309         }
    310310        /*
    311311         * This might be ugly but async_callback_receive_start makes no
    312312         * difference for incorrect call and malloc failure.
    313313         */
    314         case IPC_M_CONNECT_TO_ME: {
    315                 async_sess_t *sess =
    316                     async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
     314        case IPC_M_CONNECT_TO_ME:
     315                sess = async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
    317316
    318317                /* Probably ENOMEM error, try again. */
     
    334333
    335334                break;
    336         }
    337335        default:
    338336                ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method);
Note: See TracChangeset for help on using the changeset viewer.