From: Felipe Balbi Date: Wed, 15 Aug 2012 09:28:29 +0000 (+0300) Subject: usb: dwc3: gadget: warn about endpoint already enabled before changing ep name X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~139^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6f83f386c2f7987a344368e33e55840c12bd38f;p=pandora-kernel.git usb: dwc3: gadget: warn about endpoint already enabled before changing ep name In case some gadget driver tries to enable an endpoint which is already enabled, we print a nice WARN so we can track broken gadget drivers. The only problem is that we're printing the WARN when we already changed endpoint's name, which would result in endpoints named as: ep1in-bulk-bulk-bulk-bulk-bulk-bulk-bulk To prevent that, we will continue to print the WARN, but do so before changing endpoint's name and return early. Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed