]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: isa: Fix error return code in snd_cmi8330_probe()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 7 Jul 2021 07:40:51 +0000 (15:40 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 7 Jul 2021 11:26:19 +0000 (13:26 +0200)
commit89feba0574e8ccaed1f346e4c5256956c5e4c9b7
tree0689236dc098938fb6ad67d6d1968265267b76bd
parent7785c8085c3f68ba2859bb04f232c2a6dc70eba4
ALSA: isa: Fix error return code in snd_cmi8330_probe()

When 'SB_HW_16' check fails, the error code -ENODEV instead of 0 should be
returned, which is the same as that returned when 'WSS_HW_CMI8330' check
fails.

Fixes: 875c7c28597d ("[ALSA] Add snd_card_set_generic_dev() call to ISA drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210707074051.2663-1-thunder.leizhen@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/cmi8330.c