[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1464444477-5805-1-git-send-email-luisbg@osg.samsung.com>
Date: Sat, 28 May 2016 15:07:57 +0100
From: Luis de Bethencourt <luisbg@....samsung.com>
To: linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, viro@...iv.linux.org.uk,
mhocko@...e.com, hannes@...xchg.org, vdavydov@...tuozzo.com,
Luis de Bethencourt <luisbg@....samsung.com>,
Luis de Bethencourt <luisbg@....samsung.org>
Subject: [PATCH] befs/linuxvfs: remove unneeded initialization
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 <luisbg@....samsung.org>
---
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
Powered by blists - more mailing lists