From 1974cc50c5aac8ac5369a0361a5ac0c15f6911e2 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 9 Mar 2010 21:19:09 -0800 Subject: [PATCH] iso9660: set the type of get_inode_type() get_inode_type() returns enum dirent_type. Signed-off-by: H. Peter Anvin --- core/fs/iso9660/iso9660.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/fs/iso9660/iso9660.c b/core/fs/iso9660/iso9660.c index 9f2e5d2..4c568bf 100644 --- a/core/fs/iso9660/iso9660.c +++ b/core/fs/iso9660/iso9660.c @@ -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, -- 2.7.4