]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
usb: gadget: f_midi: remove useless midi reference from port struct
authorFelipe F. Tonello <eu@felipetonello.com>
Tue, 26 Jan 2016 13:52:36 +0000 (14:52 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:33 +0000 (15:14 +0200)
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>
drivers/usb/gadget/function/f_midi.c

index fb1fe96d3215335c1df7afe17b2b3ef3763d0d93..cd160e79b777e1306392848b9f9295a31a9e1486 100644 (file)
@@ -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;