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 <luisbg@osg.samsung.com>
This commit is contained in:
Родитель
4c3897cce0
Коммит
cfe0cb20e6
|
@ -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->max_depth = fs32_to_cpu(sb, od_sup->max_depth);
|
||||||
sup->data_type = fs32_to_cpu(sb, od_sup->data_type);
|
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->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);
|
brelse(bh);
|
||||||
if (sup->magic != BEFS_BTREE_MAGIC) {
|
if (sup->magic != BEFS_BTREE_MAGIC) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче