Skip to content

Commit 4b46daf

Browse files
Stefan Sauertiwai
authored andcommitted
ALSA: virmidi: Remove duplicated code
seq_virmidi.c: snd_virmidi_new() is already setting seq_mode to SNDRV_VIRMIDI_SEQ_DISPATCH. Signed-off-by: Stefan Sauer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 7560ee0 commit 4b46daf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sound/drivers/virmidi.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,12 @@ static int snd_virmidi_probe(struct platform_device *devptr)
9090
}
9191
for (idx = 0; idx < midi_devs[dev]; idx++) {
9292
struct snd_rawmidi *rmidi;
93-
struct snd_virmidi_dev *rdev;
9493

9594
err = snd_virmidi_new(card, idx, &rmidi);
9695
if (err < 0)
9796
return err;
98-
rdev = rmidi->private_data;
9997
vmidi->midi[idx] = rmidi;
10098
strcpy(rmidi->name, "Virtual Raw MIDI");
101-
rdev->seq_mode = SNDRV_VIRMIDI_SEQ_DISPATCH;
10299
}
103100

104101
strcpy(card->driver, "VirMIDI");

0 commit comments

Comments
 (0)