diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-06-18 09:59:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 17:35:36 -0400 |
commit | 248720529cb50c6b6cf2ec01748049c6b532a8cc (patch) | |
tree | 4a3a12596c825e3fdc362af2b1073efe370d6e25 /drivers/usb/gadget | |
parent | fd7c9a007f7d45df86974c3f83d67ab21cc21f1f (diff) |
USB: gadget: f_mass_storage: dead code removed
The ep0req_name was never used in f_mass_storage hence it may
be safely removed from the code. It was a leftover from File
Storage Gadget which used it for debug messages.
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/f_mass_storage.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 8a95ebc7e3d3..fa86b946dcd6 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c | |||
@@ -333,7 +333,6 @@ struct fsg_common { | |||
333 | struct usb_ep *ep0; /* Copy of gadget->ep0 */ | 333 | struct usb_ep *ep0; /* Copy of gadget->ep0 */ |
334 | struct usb_request *ep0req; /* Copy of cdev->req */ | 334 | struct usb_request *ep0req; /* Copy of cdev->req */ |
335 | unsigned int ep0_req_tag; | 335 | unsigned int ep0_req_tag; |
336 | const char *ep0req_name; | ||
337 | 336 | ||
338 | struct fsg_buffhd *next_buffhd_to_fill; | 337 | struct fsg_buffhd *next_buffhd_to_fill; |
339 | struct fsg_buffhd *next_buffhd_to_drain; | 338 | struct fsg_buffhd *next_buffhd_to_drain; |
@@ -623,8 +622,6 @@ static int fsg_setup(struct usb_function *f, | |||
623 | 622 | ||
624 | /* Respond with data/status */ | 623 | /* Respond with data/status */ |
625 | req->length = min((u16)1, w_length); | 624 | req->length = min((u16)1, w_length); |
626 | fsg->common->ep0req_name = | ||
627 | ctrl->bRequestType & USB_DIR_IN ? "ep0-in" : "ep0-out"; | ||
628 | return ep0_queue(fsg->common); | 625 | return ep0_queue(fsg->common); |
629 | } | 626 | } |
630 | 627 | ||