From: Armando Visconti Date: Thu, 13 Dec 2012 14:11:19 +0000 (+0100) Subject: usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink X-Git-Tag: v3.9-rc1~126^2~43^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32c9cf22fccb371745bde98e1da1c3aeb4bb9f36;p=pandora-kernel.git usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink In the IN case, since the USB request is allocated only when the source/sink function is started and never freed, the USB ept buffer needs to be initialized only at the beginning. This change results into a more performant g_zero module, especially when 'pattern=1' is selected. Signed-off-by: Armando Visconti Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed