diff options
author | Mark Brown <broonie@kernel.org> | 2022-06-14 11:25:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-14 11:25:45 +0100 |
commit | 14cc5849120051caf537f663ec620910503bb719 (patch) | |
tree | f786cd254d3a6dc104976b03e05b381d9fe5cc16 /sound/soc/soc-ops.c | |
parent | 7ed1f83bb4f05fe460984ae49e98d1c1be38fb5f (diff) | |
parent | da440af07fc3dd2b5a5138671eba51991dd1fac8 (diff) | |
download | linux-14cc5849120051caf537f663ec620910503bb719.tar.bz2 |
ASoC: Merge fixes
Required for more changes for the ops.
Diffstat (limited to 'sound/soc/soc-ops.c')
-rw-r--r-- | sound/soc/soc-ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-ops.c b/sound/soc/soc-ops.c index 2d5910b6ca54..184910ed2d7b 100644 --- a/sound/soc/soc-ops.c +++ b/sound/soc/soc-ops.c @@ -535,7 +535,7 @@ int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, return -EINVAL; if (mc->platform_max && tmp > mc->platform_max) return -EINVAL; - if (tmp > mc->max - mc->min + 1) + if (tmp > mc->max - mc->min) return -EINVAL; if (invert) @@ -556,7 +556,7 @@ int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, return -EINVAL; if (mc->platform_max && tmp > mc->platform_max) return -EINVAL; - if (tmp > mc->max - mc->min + 1) + if (tmp > mc->max - mc->min) return -EINVAL; if (invert) |