dm table: replace while loops with for loops
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 18 Apr 2017 20:51:46 +0000 (16:51 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 24 Apr 2017 16:04:31 +0000 (12:04 -0400)
commit3c12016910061c2a19d985fba7f7dec19d6a3a09
treea14e713808ce97a29ab9daa99b628bb89334cc4b
parentcc7e394024770d4bfd8463fab1a9e2e262a7d7c1
dm table: replace while loops with for loops

Also remove some unnecessary use of uninitialized_var().

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-table.c