Changeset 5153b58 in mainline for uspace/drv/bus/usb/usbmid/usbmid.c


Ignore:
Timestamp:
2011-11-05T17:55:01Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f583151
Parents:
207acc4e
Message:

usbmid: Minor refactoring. Fix possible corruption in error path.

File:
1 edited

Legend:

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

    r207acc4e r5153b58  
    124124        }
    125125
    126         iface->fun = child;
    127 
    128         child->driver_data = iface;
    129         child->ops = &child_device_ops;
    130 
    131126        rc = usb_device_create_match_ids_from_interface(device_descriptor,
    132127            interface_descriptor, &child->match_ids);
     
    143138        }
    144139
     140        iface->fun = child;
     141        child->driver_data = iface;
     142        child->ops = &child_device_ops;
     143
    145144        return EOK;
    146145}
Note: See TracChangeset for help on using the changeset viewer.