Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4da7d79 in mainline


Ignore:
Timestamp:
2010-01-06T20:31:42Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
6ef2c11
Parents:
d557e4f
Message:

Small cleanup.

File:
1 edited

Legend:

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

    rd557e4f r4da7d79  
    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.