[PATCH] logfs: readwrite: Remove unused function

From: Rickard Strandqvist
Date: Sun Jan 11 2015 - 17:08:31 EST


Remove the function init_shadow_tree() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx>
---
fs/logfs/readwrite.c | 9 ---------
1 file changed, 9 deletions(-)

diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c
index 380d86e..eafaa29 100644
--- a/fs/logfs/readwrite.c
+++ b/fs/logfs/readwrite.c
@@ -377,15 +377,6 @@ static unsigned long get_bits(u64 val, level_t skip)
return __get_bits(val, (__force int)skip, LOGFS_BLOCK_BITS);
}

-static inline void init_shadow_tree(struct super_block *sb,
- struct shadow_tree *tree)
-{
- struct logfs_super *super = logfs_super(sb);
-
- btree_init_mempool64(&tree->new, super->s_btree_pool);
- btree_init_mempool64(&tree->old, super->s_btree_pool);
-}
-
static void indirect_write_block(struct logfs_block *block)
{
struct page *page;
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/