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

dm persistent data: switch exit_ro_spine to return void

In commit 4c7da06f5a78 ("dm persistent data: eliminate unnecessary
return values"), r value in exit_ro_spine will not change, so
exit_ro_spine doesn't need a return value.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

authored by

Zhiqiang Liu and committed by
Mike Snitzer
9431cf6e a86fe8be

+3 -5
+1 -1
drivers/md/persistent-data/dm-btree-internal.h
··· 68 68 }; 69 69 70 70 void init_ro_spine(struct ro_spine *s, struct dm_btree_info *info); 71 - int exit_ro_spine(struct ro_spine *s); 71 + void exit_ro_spine(struct ro_spine *s); 72 72 int ro_step(struct ro_spine *s, dm_block_t new_child); 73 73 void ro_pop(struct ro_spine *s); 74 74 struct btree_node *ro_node(struct ro_spine *s);
+2 -4
drivers/md/persistent-data/dm-btree-spine.c
··· 132 132 s->nodes[1] = NULL; 133 133 } 134 134 135 - int exit_ro_spine(struct ro_spine *s) 135 + void exit_ro_spine(struct ro_spine *s) 136 136 { 137 - int r = 0, i; 137 + int i; 138 138 139 139 for (i = 0; i < s->count; i++) { 140 140 unlock_block(s->info, s->nodes[i]); 141 141 } 142 - 143 - return r; 144 142 } 145 143 146 144 int ro_step(struct ro_spine *s, dm_block_t new_child)