Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24872052 authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by Greg Kroah-Hartman
Browse files

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: default avatarMichal Nazarewicz <m.nazarewicz@samsung.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fd7c9a00
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -333,7 +333,6 @@ struct fsg_common {
	struct usb_ep		*ep0;		/* Copy of gadget->ep0 */
	struct usb_request	*ep0req;	/* Copy of cdev->req */
	unsigned int		ep0_req_tag;
	const char		*ep0req_name;

	struct fsg_buffhd	*next_buffhd_to_fill;
	struct fsg_buffhd	*next_buffhd_to_drain;
@@ -623,8 +622,6 @@ static int fsg_setup(struct usb_function *f,

		/* Respond with data/status */
		req->length = min((u16)1, w_length);
		fsg->common->ep0req_name =
			ctrl->bRequestType & USB_DIR_IN ? "ep0-in" : "ep0-out";
		return ep0_queue(fsg->common);
	}