Changes in / [55e388a1:e18e0d6] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/hidparser.c

    r55e388a1 re18e0d6  
    8484{
    8585   if(parser == NULL) {
    86         return EINVAL;
     86        return -1;
    8787   }
    8888
     
    115115        size_t offset_output=0;
    116116        size_t offset_feature=0;
    117 
    118         if(usb_hid_parser_init(parser) != EOK) {
    119                 return EINVAL;
    120         }
    121117       
    122118
     
    132128
    133129                        if((i+USB_HID_ITEM_SIZE(data[i]))>= size){
    134                                 return EINVAL; // TODO ERROR CODE
     130                                return -1; // TODO ERROR CODE
    135131                        }
    136132                       
     
    534530void usb_hid_descriptor_print(usb_hid_report_parser_t *parser)
    535531{
    536         if(parser == NULL) {
    537                 return;
    538         }
    539        
    540532        usb_log_debug("INPUT:\n");
    541533        usb_hid_descriptor_print_list(&parser->input);
     
    623615        size_t j=0;
    624616
    625         if(parser == NULL) {
    626                 return EINVAL;
    627         }
    628 
    629        
    630617        // get the size of result keycodes array
    631618        usb_hid_report_path_t path;
     
    750737int usb_hid_report_input_length(const usb_hid_report_parser_t *parser,
    751738        const usb_hid_report_path_t *path)
    752 {       
     739{
    753740        int ret = 0;
    754741        link_t *item;
    755742        usb_hid_report_item_t *report_item;
    756743
    757         if(parser == NULL) {
    758                 return EINVAL;
    759         }
    760        
    761744        item = (&parser->input)->next;
    762745        while(&parser->input != item) {
Note: See TracChangeset for help on using the changeset viewer.