fs/befs/linuxvfs.c:befs_iget(): remove unneeded initialization to NULL
authorSalah Triki <salah.triki@acm.org>
Mon, 23 May 2016 23:22:43 +0000 (16:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 May 2016 00:04:14 +0000 (17:04 -0700)
bh is reinitialized by befs_bread() so no need to init it
with NULL in the beginning of befs_iget()

Link: http://lkml.kernel.org/r/38d62b1469bc3b316ba6b81fd8e26fc66fdd713b.1462842886.git.salah.triki@acm.org
Signed-off-by: Salah Triki <salah.triki@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/befs/linuxvfs.c

index ed6e712d39723354fd15ff66f24f49c0ef4bee4c..410315400755c272a2c0fa487ec46545470af282 100644 (file)
@@ -294,7 +294,7 @@ static void init_once(void *foo)
 
 static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
 {
-       struct buffer_head *bh = NULL;
+       struct buffer_head *bh;
        befs_inode *raw_inode = NULL;
        struct befs_sb_info *befs_sb = BEFS_SB(sb);
        struct befs_inode_info *befs_ino = NULL;