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)
commit26eca10e6ef64e15f250523a1e7e94ad40ac2bf8
tree516237887aaaa58604b02cc6db7bc43967935858
parent3b759c75febd8f9ce91a05705ec43eb7f4b5ed3d
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