aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-06-09 14:02:16 +0200
committerTakashi Iwai <tiwai@suse.de>2022-06-15 07:45:26 +0200
commit2c7463d070c4e49ff850322d4f0321e97b0b6740 (patch)
tree8e01225253058b1faf2fb251798670a13c732985
parentALSA: control: Use xarray for faster lookups (diff)
downloadlinux-dev-2c7463d070c4e49ff850322d4f0321e97b0b6740.tar.xz
linux-dev-2c7463d070c4e49ff850322d4f0321e97b0b6740.zip
ASoC: topology: Drop superfluous check of CONFIG_SND_CTL_VALIDATION
The compiler must be clever enough to optimize out for the no-op when CONFIG_SND_CTL_VALIDATION is disabled. Let's drop the superfluous check. Link: https://lore.kernel.org/r/20220609120219.3937-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/soc/soc-topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 3f9d314fba16..b101db85446f 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -535,7 +535,7 @@ static int soc_tplg_kcontrol_bind_io(struct snd_soc_tplg_ctl_hdr *hdr,
* return an -EINVAL error and prevent the card from
* being configured.
*/
- if (IS_ENABLED(CONFIG_SND_CTL_VALIDATION) && sbe->max > 512)
+ if (sbe->max > 512)
k->access |= SNDRV_CTL_ELEM_ACCESS_SKIP_CHECK;
ext_ops = tplg->bytes_ext_ops;