usb: gadget: Compilation warning fix
authorTatyana Brokhman <tlinder@codeaurora.org>
Thu, 30 Jun 2011 05:44:42 +0000 (08:44 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:45:44 +0000 (14:45 -0700)
A compilation warning was added by the patch
"usb: gadget: use config_ep_by_speed() instead of ep_choose()".
This patch fixed it.

Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/storage_common.c

index 1fa4f705b0b4b41f73cfe4352be1d92a16b6bbe0..d3dd227a2bfc8b32bbea576eccd469d897d2ed55 100644 (file)
@@ -494,7 +494,7 @@ static struct usb_descriptor_header *fsg_hs_function[] = {
 };
 
 /* Maxpacket and other transfer characteristics vary by speed. */
-static struct usb_endpoint_descriptor *
+static __maybe_unused struct usb_endpoint_descriptor *
 fsg_ep_desc(struct usb_gadget *g, struct usb_endpoint_descriptor *fs,
                struct usb_endpoint_descriptor *hs)
 {