From: akpm@linux-foundation.org Subject: [patch 12/84] fs/befs/io.c:befs_bread(): remove unneeded initialization to NULL Date: Mon, 23 May 2016 16:22:55 -0700 Message-ID: <574390cf.Kv9NWMU9aYwyVM5v%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:42126 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbcEWXW4 (ORCPT ); Mon, 23 May 2016 19:22:56 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: torvalds@linux-foundation.org, mm-commits@vger.kernel.org, akpm@linux-foundation.org, salah.triki@acm.org From: Salah Triki Subject: fs/befs/io.c:befs_bread(): 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() Link: http://lkml.kernel.org/r/88481760b43226fac16adb1f1e68897e47d8235c.1462841692.git.salah.triki@acm.org Signed-off-by: Salah Triki Signed-off-by: Andrew Morton --- fs/befs/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/befs/io.c~fs-befs-ioc-befs_bread-remove-unneeded-initialization-to-null fs/befs/io.c --- a/fs/befs/io.c~fs-befs-ioc-befs_bread-remove-unneeded-initialization-to-null +++ a/fs/befs/io.c @@ -63,7 +63,7 @@ befs_bread_iaddr(struct super_block *sb, struct buffer_head * befs_bread(struct super_block *sb, befs_blocknr_t block) { - struct buffer_head *bh = NULL; + struct buffer_head *bh; befs_debug(sb, "---> Enter %s %lu", __func__, (unsigned long)block); _