Skip to content

Commit

Permalink
HID: hid-prodikeys: remove unused struct pcmidi_snd members
Browse files Browse the repository at this point in the history
struct pcmidi_snd contains two unused members: out_substream and
out_active. They were added along the driver in commit 3a370ca
(HID: Prodikeys PC-MIDI HID Driver), but not used.

Drop them.

Found by https://github.com/jirislaby/clang-struct.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
  • Loading branch information
Jiri Slaby (SUSE) authored and Jiri Kosina committed Feb 13, 2024
1 parent b9215e6 commit 22ec898
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/hid/hid-prodikeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ struct pcmidi_snd {
struct snd_card *card;
struct snd_rawmidi *rwmidi;
struct snd_rawmidi_substream *in_substream;
struct snd_rawmidi_substream *out_substream;
unsigned long in_triggered;
unsigned long out_active;
};

#define PK_QUIRK_NOGET 0x00010000
Expand Down

0 comments on commit 22ec898

Please sign in to comment.