Changeset 2a5b62b in mainline for uspace/drv/bus/usb/usbhid/kbd/kbddev.c
- Timestamp:
- 2011-10-15T00:09:46Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8a121b1
- Parents:
- 1526c174
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/kbd/kbddev.c
r1526c174 r2a5b62b 502 502 503 503 if (kbd_dev == NULL) { 504 usb_log_ fatal("No memory!\n");504 usb_log_error("No memory!\n"); 505 505 return NULL; 506 506 } … … 624 624 625 625 if (kbd_dev->keys == NULL) { 626 usb_log_ fatal("No memory!\n");626 usb_log_error("No memory!\n"); 627 627 free(kbd_dev); 628 628 return ENOMEM; … … 633 633 634 634 if (kbd_dev->keys_old == NULL) { 635 usb_log_ fatal("No memory!\n");635 usb_log_error("No memory!\n"); 636 636 free(kbd_dev->keys); 637 637 free(kbd_dev); … … 797 797 usb_log_warning("Failed to unbind kbd function.\n"); 798 798 } else { 799 usb_log_debug2("%s unbound.\n", kbd_dev->fun->name); 799 800 kbd_dev->fun->driver_data = NULL; 800 801 ddf_fun_destroy(kbd_dev->fun); … … 811 812 812 813 if (data != NULL) { 813 usb_kbd_t *kbd_dev = (usb_kbd_t *)data;814 usb_kbd_t *kbd_dev = data; 814 815 if (usb_kbd_is_initialized(kbd_dev)) { 815 816 usb_kbd_mark_unusable(kbd_dev); 816 } else { 817 /* wait for autorepeat */ 818 async_usleep(CHECK_DELAY); 817 819 usb_kbd_destroy(kbd_dev); 818 820 }
Note:
See TracChangeset
for help on using the changeset viewer.