ALSA: gus: add a check of the status of snd_ctl_add
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 01:40:51 +0000 (19:40 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Jan 2019 10:54:56 +0000 (11:54 +0100)
commit0f25e000cb4398081748e54f62a902098aa79ec1
tree55baba48be93633566a7b0dbcf920f3ba9a98a93
parent4bccb403f2ca06718ac3a3d9b02e89ca4e823d9f
ALSA: gus: add a check of the status of snd_ctl_add

snd_ctl_add() could fail, so let's check its status and issue an error
message if it indeed fails.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/gus/gus_main.c