Changeset cddd151 in mainline for uspace/drv/bus/usb/usbhid/usbhid.c


Ignore:
Timestamp:
2011-10-14T14:37:32Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7b54b99
Parents:
e5024111
Message:

usbhid: kbd store pointer to created function.

Make repeat mutex part of the kbd structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/usbhid.c

    re5024111 rcddd151  
    669669        }
    670670
    671         // free the subdrivers info
    672         if (hid_dev->subdrivers != NULL) {
    673                 free(hid_dev->subdrivers);
    674         }
    675 
    676         // destroy the parser
     671        /* Free allocated structures */
     672        free(hid_dev->subdrivers);
     673        free(hid_dev->report_desc);
     674
     675        /* Destroy the parser */
    677676        if (hid_dev->report != NULL) {
    678677                usb_hid_free_report(hid_dev->report);
    679678        }
    680679
    681         if (hid_dev->report_desc != NULL) {
    682                 free(hid_dev->report_desc);
    683         }
    684680}
    685681
Note: See TracChangeset for help on using the changeset viewer.