Skip to content

Commit

Permalink
usb: gadget: Compilation warning fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tatyana Brokhman authored and Greg Kroah-Hartman committed Jul 1, 2011
1 parent 5bf5450 commit bc8687d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/storage_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bc8687d

Please sign in to comment.