ALSA: hda: cirrus_scodec: fix an error code
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 27 Sep 2023 12:44:01 +0000 (15:44 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sat, 30 Sep 2023 07:47:17 +0000 (09:47 +0200)
commitc258bcc289e6920038186eae38b2b7aa9786d796
tree57625fa05050acf185e406723ed9694a2fa48a02
parentf5cc9cdfc96fb1f26f986801cee473e2e68ba737
ALSA: hda: cirrus_scodec: fix an error code

The "ret" variable is zero but we should return -EINVAL.

Fixes: 2144833e7b41 ("ALSA: hda: cirrus_scodec: Add KUnit test")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/5eea7fd5-67c8-4ed4-b5b3-b85dfb7572cc@moroto.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cirrus_scodec_test.c