Skip to content

Commit

Permalink
fs/befs/btree.c: remove unneeded initializations
Browse files Browse the repository at this point in the history
bh, od_sup and this_node are unconditionally initialized in
befs_bt_read_super() and befs_btree_find()

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jun 26, 2015
1 parent 83b08bf commit 9f0f564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/befs/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ static int
befs_bt_read_super(struct super_block *sb, befs_data_stream * ds,
befs_btree_super * sup)
{
struct buffer_head *bh = NULL;
befs_disk_btree_super *od_sup = NULL;
struct buffer_head *bh;
befs_disk_btree_super *od_sup;

befs_debug(sb, "---> %s", __func__);

Expand Down Expand Up @@ -250,7 +250,7 @@ int
befs_btree_find(struct super_block *sb, befs_data_stream * ds,
const char *key, befs_off_t * value)
{
struct befs_btree_node *this_node = NULL;
struct befs_btree_node *this_node;
befs_btree_super bt_super;
befs_off_t node_off;
int res;
Expand Down

0 comments on commit 9f0f564

Please sign in to comment.