Skip to content

Commit

Permalink
ROMFS: romfs_dev_read() error ignored
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Al Viro committed May 9, 2009
1 parent c490d79 commit 774e33e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/romfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos)
struct romfs_inode ri;
struct inode *i;
unsigned long nlen;
unsigned nextfh, ret;
unsigned nextfh;
int ret;
umode_t mode;

/* we might have to traverse a chain of "hard link" file entries to get
Expand Down

0 comments on commit 774e33e

Please sign in to comment.