Changes in uspace/app/mkbd/main.c [a8c4e871:7beb220] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkbd/main.c
ra8c4e871 r7beb220 69 69 int rc = usb_hid_report_init(*report); 70 70 if (rc != EOK) { 71 usb_hid_ report_deinit(*report);71 usb_hid_free_report(*report); 72 72 *report = NULL; 73 73 return rc; … … 79 79 &report_desc_size); 80 80 if (rc != EOK) { 81 usb_hid_ report_deinit(*report);81 usb_hid_free_report(*report); 82 82 *report = NULL; 83 83 return rc; … … 85 85 86 86 if (report_desc_size == 0) { 87 usb_hid_ report_deinit(*report);87 usb_hid_free_report(*report); 88 88 *report = NULL; 89 89 // TODO: other error code? … … 93 93 uint8_t *desc = (uint8_t *) malloc(report_desc_size); 94 94 if (desc == NULL) { 95 usb_hid_ report_deinit(*report);95 usb_hid_free_report(*report); 96 96 *report = NULL; 97 97 return ENOMEM; … … 103 103 &actual_size); 104 104 if (rc != EOK) { 105 usb_hid_ report_deinit(*report);105 usb_hid_free_report(*report); 106 106 *report = NULL; 107 107 free(desc); … … 110 110 111 111 if (actual_size != report_desc_size) { 112 usb_hid_ report_deinit(*report);112 usb_hid_free_report(*report); 113 113 *report = NULL; 114 114 free(desc);
Note:
See TracChangeset
for help on using the changeset viewer.