Changeset 338d54a7 in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c
- Timestamp:
- 2018-03-10T22:55:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 850fd32
- Parents:
- 5ef16903
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/ps2mouse/ps2mouse.c
r5ef16903 r338d54a7 408 408 const sysarg_t method = IPC_GET_IMETHOD(*icall); 409 409 ps2_mouse_t *mouse = ddf_dev_data_get(ddf_fun_get_dev(fun)); 410 async_sess_t *sess; 410 411 411 412 switch (method) { 412 413 /* This might be ugly but async_callback_receive_start makes no 413 414 * 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); 417 417 /* Probably ENOMEM error, try again. */ 418 418 if (sess == NULL) { … … 431 431 } 432 432 break; 433 }434 433 default: 435 434 ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method);
Note:
See TracChangeset
for help on using the changeset viewer.