Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7766aa5 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

ASoC: topology: use j for internal loop counter



Currently variable i is being for 2 nested for loops. Fix this by
using integer loop counter j for the inside for loop.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b6e38b29
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
		}