Commit 774e33e7 authored by Roel Kluin's avatar Roel Kluin Committed by Al Viro

ROMFS: romfs_dev_read() error ignored

romfs_dev_read() may return -EIO, but ret is unsigned, so the errorpath
isn't taken.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c490d79b
...@@ -298,7 +298,8 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos) ...@@ -298,7 +298,8 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos)
struct romfs_inode ri; struct romfs_inode ri;
struct inode *i; struct inode *i;
unsigned long nlen; unsigned long nlen;
unsigned nextfh, ret; unsigned nextfh;
int ret;
umode_t mode; umode_t mode;
/* we might have to traverse a chain of "hard link" file entries to get /* we might have to traverse a chain of "hard link" file entries to get
......
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