mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
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>
This commit is contained in:
parent
c27e1efb61
commit
2c7463d070
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user