]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dm array: remove a dead assignment in populate_ablock_with_values()
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 18 Nov 2016 22:28:32 +0000 (14:28 -0800)
committerMike Snitzer <snitzer@redhat.com>
Thu, 8 Dec 2016 19:13:09 +0000 (14:13 -0500)
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>
drivers/md/persistent-data/dm-array.c

index e83047cbb2daaa8cf4bdbe8e8c52512c4df8ad9f..7938cd21fa4c70c673e6d7b076f2c631b8ca77e8 100644 (file)
@@ -700,13 +700,11 @@ static int populate_ablock_with_values(struct dm_array_info *info, struct array_
 {
        int r;
        unsigned i;
-       uint32_t nr_entries;
        struct dm_btree_value_type *vt = &info->value_type;
 
        BUG_ON(le32_to_cpu(ab->nr_entries));
        BUG_ON(new_nr > le32_to_cpu(ab->max_entries));
 
-       nr_entries = le32_to_cpu(ab->nr_entries);
        for (i = 0; i < new_nr; i++) {
                r = fn(base + i, element_at(info, ab, i), context);
                if (r)