Merge remote-tracking branches 'asoc/topic/tegra', 'asoc/topic/tlv320aic23', 'asoc...
[sfrench/cifs-2.6.git] / sound / soc / soc-topology.c
index 058bc99c6c3479e4d7a92c97a885f634b168105d..002772e3ba2cb5f193ef35b4b96c8ee6eadc46d1 100644 (file)
@@ -495,12 +495,13 @@ static void remove_widget(struct snd_soc_component *comp,
                        struct snd_kcontrol *kcontrol = w->kcontrols[i];
                        struct soc_enum *se =
                                (struct soc_enum *)kcontrol->private_value;
+                       int j;
 
                        snd_ctl_remove(card, kcontrol);
 
                        kfree(se->dobj.control.dvalues);
-                       for (i = 0; i < se->items; i++)
-                               kfree(se->dobj.control.dtexts[i]);
+                       for (j = 0; j < se->items; j++)
+                               kfree(se->dobj.control.dtexts[j]);
 
                        kfree(se);
                }