Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm array: remove a dead assignment in populate_ablock_with_values()

A value is assigned to 'nr_entries' but is never used, remove it.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

authored by

Bart Van Assche and committed by
Mike Snitzer
0637018d 6080758d

-2
-2
drivers/md/persistent-data/dm-array.c
··· 700 700 { 701 701 int r; 702 702 unsigned i; 703 - uint32_t nr_entries; 704 703 struct dm_btree_value_type *vt = &info->value_type; 705 704 706 705 BUG_ON(le32_to_cpu(ab->nr_entries)); 707 706 BUG_ON(new_nr > le32_to_cpu(ab->max_entries)); 708 707 709 - nr_entries = le32_to_cpu(ab->nr_entries); 710 708 for (i = 0; i < new_nr; i++) { 711 709 r = fn(base + i, element_at(info, ab, i), context); 712 710 if (r)