ROMFS: romfs_dev_read() error ignored
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 26 Apr 2009 12:51:17 +0000 (14:51 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2009 14:49:41 +0000 (10:49 -0400)
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>
fs/romfs/super.c

index c53b5ef8a02ff439095e14401592d4dda379b021..4ab3c03d8f9563a588a3b1a0e152bc528dd9d601 100644 (file)
@@ -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