<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From: Hannes Reinecke &lt;hare@suse.de&gt;

free_devices in dm_table.c already uses list_for_each(), so we don't 
need to check if the list is empty.

Signed-off-by: Hannes Reinecke &lt;hare@suse.de&gt;
Signed-off-by: Alasdair G Kergon &lt;agk@redhat.com&gt;

---
drivers/md/dm-table.c |    3 +--
 drivers/md/dm-table.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: linux-3.3/drivers/md/dm-table.c
===================================================================
--- linux-3.3.orig/drivers/md/dm-table.c
+++ linux-3.3/drivers/md/dm-table.c
@@ -268,8 +268,7 @@ void dm_table_destroy(struct dm_table *t
 	vfree(t-&gt;highs);
 
 	/* free the device list */
-	if (t-&gt;devices.next != &amp;t-&gt;devices)
-		free_devices(&amp;t-&gt;devices);
+	free_devices(&amp;t-&gt;devices);
 
 	dm_free_md_mempools(t-&gt;mempools);
 
</pre></body></html>