]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: g_mass_storage: static data instead of dynamic allocation
authorMichal Nazarewicz <m.nazarewicz@samsung.com>
Wed, 16 Jun 2010 10:07:56 +0000 (12:07 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:36 +0000 (14:35 -0700)
commit76263b4421e10ca37ae95e09bc00b7d7a37e21a1
tree516237887aaaa58604b02cc6db7bc43967935858
parenta9ea57b6717166d51fd804b6a18be78b4affa785
USB: gadget: g_mass_storage: static data instead of dynamic allocation

This patch changes msg_do_config() function so that it uses
a static object for a fsg_common structure instead of dynamically
allocated.  This is a micro-optimisation.

Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/mass_storage.c