Skip to content

Commit

Permalink
ALSA: virmidi: Remove duplicated code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Stefan Sauer authored and tiwai committed Jan 6, 2022
1 parent 7560ee0 commit 4b46daf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/drivers/virmidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,12 @@ static int snd_virmidi_probe(struct platform_device *devptr)
}
for (idx = 0; idx < midi_devs[dev]; idx++) {
struct snd_rawmidi *rmidi;
struct snd_virmidi_dev *rdev;

err = snd_virmidi_new(card, idx, &rmidi);
if (err < 0)
return err;
rdev = rmidi->private_data;
vmidi->midi[idx] = rmidi;
strcpy(rmidi->name, "Virtual Raw MIDI");
rdev->seq_mode = SNDRV_VIRMIDI_SEQ_DISPATCH;
}

strcpy(card->driver, "VirMIDI");
Expand Down

0 comments on commit 4b46daf

Please sign in to comment.