ALSA: virmidi: Fix wrong error check
authorTakashi Iwai <tiwai@suse.de>
Sun, 30 Nov 2014 19:13:16 +0000 (20:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 30 Nov 2014 19:17:56 +0000 (20:17 +0100)
commitfc5d3c70f97ba54bf3d3b585912b0a76a78fb718
tree8c2293b59a5d19f7dbc6196b96201b890115ee1f
parent316638a5030a04bb3259dcbca0632281001a4b24
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>
sound/drivers/virmidi.c