iso9660: set the type of get_inode_type()
authorH. Peter Anvin <hpa@zytor.com>
Wed, 10 Mar 2010 05:19:09 +0000 (21:19 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 10 Mar 2010 05:19:09 +0000 (21:19 -0800)
get_inode_type() returns enum dirent_type.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/iso9660/iso9660.c

index 9f2e5d2..4c568bf 100644 (file)
@@ -184,12 +184,9 @@ iso_find_entry(const char *dname, struct inode *inode)
     }
 }
 
-static inline int get_inode_mode(uint8_t flags)
+static inline enum dirent_type get_inode_mode(uint8_t flags)
 {
-    if (flags & 0x02)
-       return DT_DIR;
-    else
-       return DT_REG;
+    return (flags & 0x02) ? DT_DIR : DT_REG;
 }
 
 static struct inode *iso_get_inode(struct fs_info *fs,