ASoC: Intel: drop unnecessary list_empty
[linux-2.6-microblaze.git] / sound / soc / intel / skylake / skl-topology.c
index b9aab47..b7d2d97 100644 (file)
@@ -3773,9 +3773,8 @@ void skl_tplg_exit(struct snd_soc_component *component, struct hdac_bus *bus)
        struct skl_dev *skl = bus_to_skl(bus);
        struct skl_pipeline *ppl, *tmp;
 
-       if (!list_empty(&skl->ppl_list))
-               list_for_each_entry_safe(ppl, tmp, &skl->ppl_list, node)
-                       list_del(&ppl->node);
+       list_for_each_entry_safe(ppl, tmp, &skl->ppl_list, node)
+               list_del(&ppl->node);
 
        /* clean up topology */
        snd_soc_tplg_component_remove(component, SND_SOC_TPLG_INDEX_ALL);