Skip to content

Commit

Permalink
ALSA: bebob: Correction for return value of special_clk_ctl_put() in …
Browse files Browse the repository at this point in the history
…error

This commit is a supplement to my previous patch.
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-July/079190.html

The special_clk_ctl_put() still returns 0 in error handling case. It should
return -EINVAL.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Sakamoto authored and Takashi Iwai committed Jul 22, 2014
1 parent f77ac91 commit eb12f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/firewire/bebob/bebob_maudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ static int special_clk_ctl_put(struct snd_kcontrol *kctl,

id = uval->value.enumerated.item[0];
if (id >= ARRAY_SIZE(special_clk_labels))
return 0;
return -EINVAL;

mutex_lock(&bebob->mutex);

Expand Down

0 comments on commit eb12f72

Please sign in to comment.