summaryrefslogtreecommitdiffstats
path: root/fs/isofs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/isofs/dir.c')
-rw-r--r--fs/isofs/dir.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c
index a57f9680c..23ca159c7 100644
--- a/fs/isofs/dir.c
+++ b/fs/isofs/dir.c
@@ -295,9 +295,6 @@ static int isofs_readdir(struct file *filp,
struct iso_directory_record * tmpde;
struct inode *inode = filp->f_dentry->d_inode;
- if (!inode || !S_ISDIR(inode->i_mode))
- return -EBADF;
-
tmpname = (char *) __get_free_page(GFP_KERNEL);
if (!tmpname)
return -ENOMEM;