Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/fix/core' into tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
broonie committed Apr 11, 2013
2 parents ee3aee6 + 0eaa6cc commit cbf9c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2963,7 +2963,7 @@ int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol,
val = val << shift;

ret = snd_soc_update_bits_locked(codec, reg, val_mask, val);
if (ret != 0)
if (ret < 0)
return ret;

if (snd_soc_volsw_is_stereo(mc)) {
Expand Down

0 comments on commit cbf9c5a

Please sign in to comment.