dm table: simplify call to free_devices
authorHannes Reinecke <hare@suse.de>
Wed, 28 Mar 2012 17:41:24 +0000 (18:41 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 28 Mar 2012 17:41:24 +0000 (18:41 +0100)
commit574ce07eb0014069f1da763c219bb30ea4c266ec
treef5f5543a30f2e2937cfd96dea28ae17f4b0c9544
parentfe878f34df89ad4af758f40bbec829807dc93a00
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: Hannes Reinecke <hare@suse.de>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c