diff options
Diffstat (limited to 'fs/hfs/dir_cap.c')
-rw-r--r-- | fs/hfs/dir_cap.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/hfs/dir_cap.c b/fs/hfs/dir_cap.c index 0ab81d966..189b0107e 100644 --- a/fs/hfs/dir_cap.c +++ b/fs/hfs/dir_cap.c @@ -83,7 +83,7 @@ struct inode_operations hfs_cap_ndir_inode_operations = { NULL, /* symlink */ hfs_mkdir, /* mkdir */ hfs_rmdir, /* rmdir */ - hfs_mknod, /* mknod */ + NULL, /* mknod */ hfs_rename, /* rename */ NULL, /* readlink */ NULL, /* follow_link */ @@ -237,10 +237,6 @@ static int cap_readdir(struct file * filp, struct hfs_cat_entry *entry; struct inode *dir = filp->f_dentry->d_inode; - if (!dir || !dir->i_sb || !S_ISDIR(dir->i_mode)) { - return -EBADF; - } - entry = HFS_I(dir)->entry; type = HFS_ITYPE(dir->i_ino); skip_dirs = (type == HFS_CAP_RDIR); |