summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorFelipe F. Tonello <eu@felipetonello.com>2016-01-26 16:52:36 +0300
committerFelipe Balbi <balbi@kernel.org>2016-03-04 16:14:33 +0300
commitf297e86c7f017430816b27e6cf29bf81246d897e (patch)
tree36ccaf060d2e03df9484be49e9561788ad3efa1a /drivers/usb/gadget
parentef15088440e2b34441a6c99e44405b05171792a7 (diff)
downloadlinux-f297e86c7f017430816b27e6cf29bf81246d897e.tar.xz
usb: gadget: f_midi: remove useless midi reference from port struct
remove a field which is unnecessary. No functional changes. Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/function/f_midi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/usb/gadget/function/f_midi.c
index fb1fe96d3215..cd160e79b777 100644
--- a/drivers/usb/gadget/function/f_midi.c
+++ b/drivers/usb/gadget/function/f_midi.c
@@ -56,7 +56,6 @@ static const char f_midi_longname[] = "MIDI Gadget";
* USB <- IN endpoint <- rawmidi
*/
struct gmidi_in_port {
- struct f_midi *midi;
int active;
uint8_t cable;
uint8_t state;
@@ -1192,7 +1191,6 @@ static struct usb_function *f_midi_alloc(struct usb_function_instance *fi)
goto setup_fail;
}
- port->midi = midi;
port->active = 0;
port->cable = i;
midi->in_port[i] = port;