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

Commit fc5d3c70 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: virmidi: Fix wrong error check



While rewriting the code in the previous commit [316638a5: ALSA:
virmidi: fixed code style issues], the error check was wrongly
converted.  This resulted an Oops.

Fixes: 316638a5 ('ALSA: virmidi: fixed code style issues')
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 316638a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ static int snd_virmidi_probe(struct platform_device *devptr)
	sprintf(card->longname, "Virtual MIDI Card %i", dev + 1);

	err = snd_card_register(card);
	if (err) {
	if (!err) {
		platform_set_drvdata(devptr, card);
		return 0;
	}