Changeset 27270db in mainline


Ignore:
Timestamp:
2011-03-01T15:26:57Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c6c4092
Parents:
0b5644c
Message:

Fixed initialization of kbd_dev.

  • Setting console phone to -1.
Location:
uspace/drv/usbhid
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/hiddev.c

    r0b5644c r27270db  
    214214                usb_log_warning("Not accepting device.\n");
    215215                free(descriptors);
    216                 return EREFUSED;
     216                return EREFUSED;  // probably not very good return value
    217217        }
    218218       
  • uspace/drv/usbhid/kbddev.c

    r0b5644c r27270db  
    121121        sysarg_t method = IPC_GET_IMETHOD(*icall);
    122122       
    123         usb_log_debug("default_connection_handler()\n");
    124         usb_log_debug("kbd_dev: %p\n", fun->driver_data);
    125        
    126123        usbhid_kbd_t *kbd_dev = (usbhid_kbd_t *)fun->driver_data;
    127         assert(kbd_dev != NULL);       
     124        assert(kbd_dev != NULL);
    128125
    129126        if (method == IPC_M_CONNECT_TO_ME) {
     
    139136                return;
    140137        }
    141 
     138       
    142139        async_answer_0(icallid, EINVAL);
    143140}
     
    474471        }
    475472       
     473        kbd_dev->console_phone = -1;
    476474        kbd_dev->initialized = 0;
    477475       
Note: See TracChangeset for help on using the changeset viewer.