summaryrefslogtreecommitdiffstats
path: root/fs/befs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-06-26 00:03:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 02:00:43 +0200
commit9f0f564abbd8812edeef2c839ab3e6ba16595491 (patch)
tree3d7cd718cd36a90ae73b80b72da2819e11ed1abf /fs/befs
parentfs/minix: remove unneeded cast (diff)
downloadlinux-9f0f564abbd8812edeef2c839ab3e6ba16595491.tar.xz
linux-9f0f564abbd8812edeef2c839ab3e6ba16595491.zip
fs/befs/btree.c: remove unneeded initializations
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>
Diffstat (limited to 'fs/befs')
-rw-r--r--fs/befs/btree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/befs/btree.c b/fs/befs/btree.c
index 0826e91dacda..22c166280883 100644
--- a/fs/befs/btree.c
+++ b/fs/befs/btree.c
@@ -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;