From: David Brownell Date: Wed, 7 May 2008 21:25:24 +0000 (-0700) Subject: USB: serial gadget: simplify endpoint handling X-Git-Tag: v2.6.26-rc3~64^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=734d37c654569f03156f8603a9761c402a73aa20;p=pandora-kernel.git USB: serial gadget: simplify endpoint handling Switch serial gadget away from a *very* old idiom: just remember the endpoints we'll be using, instead of looking them up by name each time. This is a net code and data (globals) shrink. Also fix a small memory leak in the rmmod path, by working the same as the disconnect code. Signed-off-by: David Brownell Cc: Al Borchers Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed