All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 11/84] fs/befs/io.c:befs_bread_iaddr(): remove unneeded initialization to NULL
@ 2016-05-23 23:22 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-05-23 23:22 UTC (permalink / raw)
  To: torvalds, mm-commits, akpm, salah.triki

From: Salah Triki <salah.triki@acm.org>
Subject: fs/befs/io.c:befs_bread_iaddr(): remove unneeded initialization to NULL

bh is reinitialized by sb_bread() so no need to init it
with NULL in the beginning of befs_bread_iaddr()

Link: http://lkml.kernel.org/r/586d2639d729345b9c07aac10ba713d8ceb8745a.1462841692.git.salah.triki@acm.org
Signed-off-by: Salah Triki <salah.triki@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/befs/io.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/befs/io.c~fs-befs-ioc-befs_bread_iaddr-remove-unneeded-initialization-to-null fs/befs/io.c
--- a/fs/befs/io.c~fs-befs-ioc-befs_bread_iaddr-remove-unneeded-initialization-to-null
+++ a/fs/befs/io.c
@@ -26,7 +26,7 @@
 struct buffer_head *
 befs_bread_iaddr(struct super_block *sb, befs_inode_addr iaddr)
 {
-	struct buffer_head *bh = NULL;
+	struct buffer_head *bh;
 	befs_blocknr_t block = 0;
 	struct befs_sb_info *befs_sb = BEFS_SB(sb);
 
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-23 23:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-23 23:22 [patch 11/84] fs/befs/io.c:befs_bread_iaddr(): remove unneeded initialization to NULL akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.