Skip to content

Commit abcf911

Browse files
salah-trikiluisbg
authored andcommitted
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>
1 parent f306610 commit abcf911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/befs/linuxvfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ befs_get_block(struct inode *inode, sector_t block,
120120
struct super_block *sb = inode->i_sb;
121121
befs_data_stream *ds = &BEFS_I(inode)->i_data.ds;
122122
befs_block_run run = BAD_IADDR;
123-
int res = 0;
123+
int res;
124124
ulong disk_off;
125125

126126
befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld",

0 commit comments

Comments
 (0)