mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-03 04:43:55 +00:00
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: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
c490d79bb7
commit
774e33e70b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue