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

Commit f297e86c authored by Felipe F. Tonello's avatar Felipe F. Tonello Committed by Felipe Balbi
Browse files

usb: gadget: f_midi: remove useless midi reference from port struct



remove a field which is unnecessary. No functional changes.

Signed-off-by: default avatarFelipe F. Tonello <eu@felipetonello.com>
Signed-off-by: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent ef150884
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -56,7 +56,6 @@ static const char f_midi_longname[] = "MIDI Gadget";
 * USB <- IN endpoint  <- rawmidi
 * USB <- IN endpoint  <- rawmidi
 */
 */
struct gmidi_in_port {
struct gmidi_in_port {
	struct f_midi *midi;
	int active;
	int active;
	uint8_t cable;
	uint8_t cable;
	uint8_t state;
	uint8_t state;
@@ -1192,7 +1191,6 @@ static struct usb_function *f_midi_alloc(struct usb_function_instance *fi)
			goto setup_fail;
			goto setup_fail;
		}
		}


		port->midi = midi;
		port->active = 0;
		port->active = 0;
		port->cable = i;
		port->cable = i;
		midi->in_port[i] = port;
		midi->in_port[i] = port;