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

Commit 574ce07e authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Alasdair G Kergon
Browse files

dm table: simplify call to free_devices



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: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent fe878f34
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -268,7 +268,6 @@ void dm_table_destroy(struct dm_table *t)
	vfree(t->highs);

	/* free the device list */
	if (t->devices.next != &t->devices)
	free_devices(&t->devices);

	dm_free_md_mempools(t->mempools);