]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: serial gadget: remove needless data structure
authorDavid Brownell <david-b@pacbell.net>
Wed, 7 May 2008 21:24:10 +0000 (14:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 14 May 2008 17:00:28 +0000 (10:00 -0700)
commit2c2d28a015f0dd36c5d1a06e16923e3142574066
tree02e64a91ddfb09f899d135a50b4f7003d60a7f3a
parent9079e91b5b5a84836e65cdc9128d2602e3beaef2
USB: serial gadget: remove needless data structure

This removes a needless data structure from the serial gadget code;
it's a small code shrink, and a larger data shrink.

Since "struct usb_request" already has a "struct list_head" reserved
for use by gadget drivers, the serial gadget code doesn't need to
allocate wrapper structs to hold that list ... it can (and should!)
just use the list_head provided for that exact use.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Al Borchers <alborchers@steinerpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/serial.c