Changes in / [55e388a1:e18e0d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
r55e388a1 re18e0d6 84 84 { 85 85 if(parser == NULL) { 86 return EINVAL;86 return -1; 87 87 } 88 88 … … 115 115 size_t offset_output=0; 116 116 size_t offset_feature=0; 117 118 if(usb_hid_parser_init(parser) != EOK) {119 return EINVAL;120 }121 117 122 118 … … 132 128 133 129 if((i+USB_HID_ITEM_SIZE(data[i]))>= size){ 134 return EINVAL; // TODO ERROR CODE130 return -1; // TODO ERROR CODE 135 131 } 136 132 … … 534 530 void usb_hid_descriptor_print(usb_hid_report_parser_t *parser) 535 531 { 536 if(parser == NULL) {537 return;538 }539 540 532 usb_log_debug("INPUT:\n"); 541 533 usb_hid_descriptor_print_list(&parser->input); … … 623 615 size_t j=0; 624 616 625 if(parser == NULL) {626 return EINVAL;627 }628 629 630 617 // get the size of result keycodes array 631 618 usb_hid_report_path_t path; … … 750 737 int usb_hid_report_input_length(const usb_hid_report_parser_t *parser, 751 738 const usb_hid_report_path_t *path) 752 { 739 { 753 740 int ret = 0; 754 741 link_t *item; 755 742 usb_hid_report_item_t *report_item; 756 743 757 if(parser == NULL) {758 return EINVAL;759 }760 761 744 item = (&parser->input)->next; 762 745 while(&parser->input != item) {
Note:
See TracChangeset
for help on using the changeset viewer.