fs/befs/btree.c: remove unneeded initializations
authorFabian Frederick <fabf@skynet.be>
Thu, 25 Jun 2015 22:03:43 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:43 +0000 (17:00 -0700)
bh, od_sup and this_node are unconditionally initialized in
befs_bt_read_super() and befs_btree_find()

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/befs/btree.c

index 0826e91dacda31129e3d62faf3dd67350dfa30d1..22c166280883064c7fc42455ccb905cb386cc7e2 100644 (file)
@@ -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__);
 
@@ -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;