projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f41b09
)
dm: table remove unused total
author
Jun'ichi Nomura
<j-nomura@ce.jp.nec.com>
Fri, 8 Feb 2008 02:10:04 +0000
(
02:10
+0000)
committer
Alasdair G Kergon
<agk@redhat.com>
Fri, 8 Feb 2008 02:10:04 +0000
(
02:10
+0000)
"total = 0" does nothing.
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-table.c
b/drivers/md/dm-table.c
index d2eb3c5936822832f6087acaf8e9d44943530914..444a4fb64328cd78ec12cad69b533857a9e166b2 100644
(file)
--- a/
drivers/md/dm-table.c
+++ b/
drivers/md/dm-table.c
@@
-804,7
+804,7
@@
static int setup_indexes(struct dm_table *t)
return -ENOMEM;
/* set up internal nodes, bottom-up */
- for (i = t->depth - 2
, total = 0
; i >= 0; i--) {
+ for (i = t->depth - 2; i >= 0; i--) {
t->index[i] = indexes;
indexes += (KEYS_PER_NODE * t->counts[i]);
setup_btree_index(i, t);