From: Luis de Bethencourt Date: Mon, 11 Jul 2016 23:02:49 +0000 (+0100) Subject: befs: in memory free_node_ptr and max_size never read X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfe0cb20e6fa09becc5e6f7597c6e2d1ed9ab7dd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git befs: in memory free_node_ptr and max_size never read The only place the values of free_node_ptr and max_size are read is in befs_dump_index_entry(), which both times it is called, it is passed the on disk superblock. Removing assignment of unused values. Signed-off-by: Luis de Bethencourt --- diff --git a/fs/befs/btree.c b/fs/befs/btree.c index 679f69df3817..e8827af43dcd 100644 --- a/fs/befs/btree.c +++ b/fs/befs/btree.c @@ -156,8 +156,6 @@ befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, sup->max_depth = fs32_to_cpu(sb, od_sup->max_depth); sup->data_type = fs32_to_cpu(sb, od_sup->data_type); sup->root_node_ptr = fs64_to_cpu(sb, od_sup->root_node_ptr); - sup->free_node_ptr = fs64_to_cpu(sb, od_sup->free_node_ptr); - sup->max_size = fs64_to_cpu(sb, od_sup->max_size); brelse(bh); if (sup->magic != BEFS_BTREE_MAGIC) {