Changes in / [23efd30:6ef2c11] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/char/i8042/i8042.c

    r23efd30 r6ef2c11  
    208208static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall)
    209209{
    210         void *fs_va = NULL;
    211210        ipc_callid_t callid;
    212211        ipc_call_t call;
    213212        ipcarg_t method;
    214213        dev_handle_t dh;
    215         int flags;
    216214        int retval;
    217         size_t cnt;
    218215        int dev_id, i;
    219216
     
    225222        /* Determine which disk device is the client connecting to. */
    226223        dev_id = -1;
    227         for (i = 0; i < MAX_DEVS; i++)
     224        for (i = 0; i < MAX_DEVS; i++) {
    228225                if (i8042_port[i].dev_handle == dh)
    229226                        dev_id = i;
    230 
    231         if (dev_id < 0/* || disk[dev_id].present == false*/) {
     227        }
     228
     229        if (dev_id < 0) {
    232230                ipc_answer_0(iid, EINVAL);
    233231                return;
Note: See TracChangeset for help on using the changeset viewer.