Skip to contentSkip to conversation

ASoC: wm_adsp: Remove duplicate set of kcontrol->iface

PATCH New Richard Fitzgerald 1 participant 1 message Oct 3, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm_adsp: Remove duplicate set of kcontrol->iface

---
 sound/soc/codecs/wm_adsp.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/wm_adsp.c +0 -1
index b943dde..7320fca 100644
@@ -962,17 +962,16 @@ static int wmfw_add_ctl(struct wm_adsp *dsp, struct wm_coeff_ctl *ctl)
 	int ret;
 
 	if (!ctl || !ctl->name)
 		return -EINVAL;
 
 	kcontrol = kzalloc(sizeof(*kcontrol), GFP_KERNEL);
 	if (!kcontrol)
 		return -ENOMEM;
-	kcontrol->iface = SNDRV_CTL_ELEM_IFACE_MIXER;
 
 	kcontrol->name = ctl->name;
 	kcontrol->info = wm_coeff_info;
 	kcontrol->get = wm_coeff_get;
 	kcontrol->put = wm_coeff_put;
 	kcontrol->iface = SNDRV_CTL_ELEM_IFACE_MIXER;
 	kcontrol->tlv.c = snd_soc_bytes_tlv_callback;
 	kcontrol->private_value = (unsigned long)&ctl->bytes_ext;
Signature · 1 line
1.9.1