From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752789AbcE1OIK (ORCPT ); Sat, 28 May 2016 10:08:10 -0400 Received: from lists.s-osg.org ([54.187.51.154]:32824 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751493AbcE1OII (ORCPT ); Sat, 28 May 2016 10:08:08 -0400 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, mhocko@suse.com, hannes@cmpxchg.org, vdavydov@virtuozzo.com, Luis de Bethencourt , Luis de Bethencourt Subject: [PATCH] befs/linuxvfs: remove unneeded initialization Date: Sat, 28 May 2016 15:07:57 +0100 Message-Id: <1464444477-5805-1-git-send-email-luisbg@osg.samsung.com> X-Mailer: git-send-email 2.5.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org res is initialized to 0 in befs_get_block() but this value will be overwritten before it is used. Signed-off-by: Luis de Bethencourt --- Hi, Saw this small issue while reading the code. BeFS is very interesting, and reading this code is very educational after reading Dominic Giampaolo's book. Will continue reading and send more fixes if I see any. Thanks, Luis fs/befs/linuxvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 7da05b1..2551066 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -120,7 +120,7 @@ befs_get_block(struct inode *inode, sector_t block, struct super_block *sb = inode->i_sb; befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; befs_block_run run = BAD_IADDR; - int res = 0; + int res; ulong disk_off; befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", -- 2.5.1