All of lore.kernel.org
 help / color / mirror / Atom feed
* [alsa-devel] DPCM: suspicious code in dpcm_prune_paths()
@ 2019-09-10  9:20 Guennadi Liakhovetski
  2019-09-19 12:19 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Guennadi Liakhovetski @ 2019-09-10  9:20 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Liam Girdwood

Hi,

This code in dpcm_prune_paths() seems to have no effect:

		/* is there a valid CODEC DAI widget for this BE */
		for_each_rtd_codec_dai(dpcm->be, i, dai) {
			widget = dai_get_widget(dai, stream);

			/* prune the BE if it's no longer in our active list */
			if (widget && widget_in_list(list, widget))
				continue;
		}

Neither of the variables, that are modified in this loop are used outside 
of it. Was the "continue" maybe meant to continue the encompassing loop?

Thanks
Guennadi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-19 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-10  9:20 [alsa-devel] DPCM: suspicious code in dpcm_prune_paths() Guennadi Liakhovetski
2019-09-19 12:19 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.