diff --git a/include/sound/soc.h b/include/sound/soc.h index 946f88a6c63d1..e0371e70242d5 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1177,7 +1177,7 @@ struct snd_soc_pcm_runtime { #define asoc_rtd_to_codec(rtd, n) (rtd)->dais[n + (rtd)->num_cpus] #define for_each_rtd_components(rtd, i, component) \ - for ((i) = 0; \ + for ((i) = 0, component = NULL; \ ((i) < rtd->num_components) && ((component) = rtd->components[i]);\ (i)++) #define for_each_rtd_cpu_dais(rtd, i, dai) \