Commit 33c712b4 authored by Salah Triki's avatar Salah Triki Committed by Luis de Bethencourt

fs: befs: remove ret variable

ret is initialized to -EIO and is never modified, so remove ret and use
-EIO directly.
Signed-off-by: default avatarSalah Triki <salah.triki@gmail.com>
Acked-by: default avatarLuis de Bethencourt <luisbg@osg.samsung.com>
parent abcf9116
...@@ -299,7 +299,6 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) ...@@ -299,7 +299,6 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
struct befs_sb_info *befs_sb = BEFS_SB(sb); struct befs_sb_info *befs_sb = BEFS_SB(sb);
struct befs_inode_info *befs_ino; struct befs_inode_info *befs_ino;
struct inode *inode; struct inode *inode;
long ret = -EIO;
befs_debug(sb, "---> %s inode = %lu", __func__, ino); befs_debug(sb, "---> %s inode = %lu", __func__, ino);
...@@ -421,7 +420,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) ...@@ -421,7 +420,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
unacquire_none: unacquire_none:
iget_failed(inode); iget_failed(inode);
befs_debug(sb, "<--- %s - Bad inode", __func__); befs_debug(sb, "<--- %s - Bad inode", __func__);
return ERR_PTR(ret); return ERR_PTR(-EIO);
} }
/* Initialize the inode cache. Called at fs setup. /* Initialize the inode cache. Called at fs setup.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment