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

hfs/hfsplus: clean up unused variables in bnode.c

Delete variables 'tree' and 'sb', which are set but never used.

Link: http://lkml.kernel.org/r/1507977146-15875-1-git-send-email-chris.gekas@gmail.com
Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Christos Gkekas and committed by
Linus Torvalds
15ec3718 577753cc

-8
-4
fs/hfs/bnode.c
··· 98 98 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, 99 99 struct hfs_bnode *src_node, int src, int len) 100 100 { 101 - struct hfs_btree *tree; 102 101 struct page *src_page, *dst_page; 103 102 104 103 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); 105 104 if (!len) 106 105 return; 107 - tree = src_node->tree; 108 106 src += src_node->page_offset; 109 107 dst += dst_node->page_offset; 110 108 src_page = src_node->page[0]; ··· 235 237 236 238 static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid) 237 239 { 238 - struct super_block *sb; 239 240 struct hfs_bnode *node, *node2; 240 241 struct address_space *mapping; 241 242 struct page *page; ··· 246 249 return NULL; 247 250 } 248 251 249 - sb = tree->inode->i_sb; 250 252 size = sizeof(struct hfs_bnode) + tree->pages_per_bnode * 251 253 sizeof(struct page *); 252 254 node = kzalloc(size, GFP_KERNEL);
-4
fs/hfsplus/bnode.c
··· 127 127 void hfs_bnode_copy(struct hfs_bnode *dst_node, int dst, 128 128 struct hfs_bnode *src_node, int src, int len) 129 129 { 130 - struct hfs_btree *tree; 131 130 struct page **src_page, **dst_page; 132 131 int l; 133 132 134 133 hfs_dbg(BNODE_MOD, "copybytes: %u,%u,%u\n", dst, src, len); 135 134 if (!len) 136 135 return; 137 - tree = src_node->tree; 138 136 src += src_node->page_offset; 139 137 dst += dst_node->page_offset; 140 138 src_page = src_node->page + (src >> PAGE_SHIFT); ··· 399 401 400 402 static struct hfs_bnode *__hfs_bnode_create(struct hfs_btree *tree, u32 cnid) 401 403 { 402 - struct super_block *sb; 403 404 struct hfs_bnode *node, *node2; 404 405 struct address_space *mapping; 405 406 struct page *page; ··· 411 414 return NULL; 412 415 } 413 416 414 - sb = tree->inode->i_sb; 415 417 size = sizeof(struct hfs_bnode) + tree->pages_per_bnode * 416 418 sizeof(struct page *); 417 419 node = kzalloc(size, GFP_KERNEL);