diff options
author | Salah Triki <salah.triki@gmail.com> | 2016-07-31 21:34:31 +0100 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 10:01:25 +0100 |
commit | 33c712b4fcf23fba57cb9a8d947d9ab41e363b08 (patch) | |
tree | 1027d441b3f124ff3ffad35daa7960a34a78162a /fs | |
parent | abcf911691ee2a4e3fd8c71adc397f67c56565a2 (diff) | |
download | op-kernel-dev-33c712b4fcf23fba57cb9a8d947d9ab41e363b08.zip op-kernel-dev-33c712b4fcf23fba57cb9a8d947d9ab41e363b08.tar.gz |
fs: befs: remove ret variable
ret is initialized to -EIO and is never modified, so remove ret and use
-EIO directly.
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index c3909a6..d307c1e 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c @@ -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_inode_info *befs_ino; struct inode *inode; - long ret = -EIO; befs_debug(sb, "---> %s inode = %lu", __func__, ino); @@ -421,7 +420,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) unacquire_none: iget_failed(inode); befs_debug(sb, "<--- %s - Bad inode", __func__); - return ERR_PTR(ret); + return ERR_PTR(-EIO); } /* Initialize the inode cache. Called at fs setup. |