From: Andrzej Pietrasiewicz Date: Tue, 3 Dec 2013 14:15:22 +0000 (+0100) Subject: usb: gadget: g_ffs: remove a reduntant gfs_ether_setup variable X-Git-Tag: v3.14-rc1~148^2~90^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec8f00f34a78f8d43504ffba3f31eddf4433408;p=pandora-kernel.git usb: gadget: g_ffs: remove a reduntant gfs_ether_setup variable Since d6a0143985489e470a118605352f4b18df0ce142 usb: gadget: move the global the_dev variable to their users "the_dev" variable can be used as a "setup done" flag; non-NULL meaning "setup done", NULL meaning "setup not done". Moreover, gether_cleanup() can be safely called with a NULL argument. Corrected a comment to be consistent with the code. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park Acked-by: Michal Nazarewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed