summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@gmail.com>2016-07-31 21:34:30 +0100
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-10-08 10:01:24 +0100
commitabcf911691ee2a4e3fd8c71adc397f67c56565a2 (patch)
tree0d759544b5d2897798501440f803c5d6c244d457 /fs
parentf30661035b01910c5da248b6e67fb66182e40f6f (diff)
downloadlinux-stable-abcf911691ee2a4e3fd8c71adc397f67c56565a2.tar.gz
linux-stable-abcf911691ee2a4e3fd8c71adc397f67c56565a2.tar.bz2
linux-stable-abcf911691ee2a4e3fd8c71adc397f67c56565a2.zip
fs: befs: remove in vain variable assignment
There is no need to init res, since it will be overwitten later by befs_fblock2brun(). Signed-off-by: Salah Triki <salah.triki@gmail.com> Acked-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/befs/linuxvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index ebfc9f0b8a2d..c3909a6a24a3 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",