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


Ignore:
File:
1 edited

Legend:

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

    r6ef2c11 r23efd30  
    208208static void i8042_connection(ipc_callid_t iid, ipc_call_t *icall)
    209209{
     210        void *fs_va = NULL;
    210211        ipc_callid_t callid;
    211212        ipc_call_t call;
    212213        ipcarg_t method;
    213214        dev_handle_t dh;
     215        int flags;
    214216        int retval;
     217        size_t cnt;
    215218        int dev_id, i;
    216219
     
    222225        /* Determine which disk device is the client connecting to. */
    223226        dev_id = -1;
    224         for (i = 0; i < MAX_DEVS; i++) {
     227        for (i = 0; i < MAX_DEVS; i++)
    225228                if (i8042_port[i].dev_handle == dh)
    226229                        dev_id = i;
    227         }
    228 
    229         if (dev_id < 0) {
     230
     231        if (dev_id < 0/* || disk[dev_id].present == false*/) {
    230232                ipc_answer_0(iid, EINVAL);
    231233                return;
Note: See TracChangeset for help on using the changeset viewer.