lkml.org 
[lkml]   [2016]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/6] fs: befs: remove in vain variable assignment
    Date
    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>
    ---
    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 6bc5b40..2b68c81 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",
    --
    1.9.1
    \
     
     \ /
      Last update: 2016-07-31 23:21    [W:2.894 / U:0.500 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site