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