From 32c9cf22fccb371745bde98e1da1c3aeb4bb9f36 Mon Sep 17 00:00:00 2001 From: Armando Visconti Date: Thu, 13 Dec 2012 15:11:19 +0100 Subject: [PATCH] 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-format-patch failed