On Wed, 14 Jun 2006, Greg KH wrote:
> Instead of a kobject, will make things easier in the future (don't know
> what I was thinking when I did this originally...)
That's 'cause you didn't write it originally, I did. :-)
I used a kobject instead of a struct device because I didn't foresee any
need for all the extra baggage, and I wanted to avoid uevents associated
with the creation and removal of the endpoint objects.
> +static void release_endpoint_class(struct kref *kref)
> {
> - struct ep_object *ep_obj = to_ep_object(kobj);
> - struct ep_attribute *ep_attr = to_ep_attribute(attr);
> + /* Ok, we cheat as we know we only have on ep_class */
Typo.
> void usb_create_ep_files(struct device *parent,
...
> +
> +exit:
> + return;
> +error:
> + kfree(ep_dev);
> + goto exit;
> }
The return of spaghetti code!
Alan Stern
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel