Changeset 338d54a7 in mainline for uspace/drv/hid/ps2mouse/ps2mouse.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/ps2mouse/ps2mouse.c

    r5ef16903 r338d54a7  
    408408        const sysarg_t method = IPC_GET_IMETHOD(*icall);
    409409        ps2_mouse_t *mouse = ddf_dev_data_get(ddf_fun_get_dev(fun));
     410        async_sess_t *sess;
    410411
    411412        switch (method) {
    412413        /* This might be ugly but async_callback_receive_start makes no
    413414         * difference for incorrect call and malloc failure. */
    414         case IPC_M_CONNECT_TO_ME: {
    415                 async_sess_t *sess =
    416                     async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
     415        case IPC_M_CONNECT_TO_ME:
     416                sess = async_callback_receive_start(EXCHANGE_SERIALIZE, icall);
    417417                /* Probably ENOMEM error, try again. */
    418418                if (sess == NULL) {
     
    431431                }
    432432                break;
    433         }
    434433        default:
    435434                ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method);
Note: See TracChangeset for help on using the changeset viewer.