diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-11-30 20:13:16 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-30 20:17:56 +0100 |
commit | fc5d3c70f97ba54bf3d3b585912b0a76a78fb718 (patch) | |
tree | 8c2293b59a5d19f7dbc6196b96201b890115ee1f /sound/drivers | |
parent | 316638a5030a04bb3259dcbca0632281001a4b24 (diff) | |
download | op-kernel-dev-fc5d3c70f97ba54bf3d3b585912b0a76a78fb718.zip op-kernel-dev-fc5d3c70f97ba54bf3d3b585912b0a76a78fb718.tar.gz |
ALSA: virmidi: Fix wrong error check
While rewriting the code in the previous commit [316638a5030a: ALSA:
virmidi: fixed code style issues], the error check was wrongly
converted. This resulted an Oops.
Fixes: 316638a5030a ('ALSA: virmidi: fixed code style issues')
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/virmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/virmidi.c b/sound/drivers/virmidi.c index 0af88d9..d28d870 100644 --- a/sound/drivers/virmidi.c +++ b/sound/drivers/virmidi.c @@ -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; } |