diff options
Diffstat (limited to 'fs/adfs/namei.c')
-rw-r--r-- | fs/adfs/namei.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/adfs/namei.c b/fs/adfs/namei.c index df3b5e457..4e41c0975 100644 --- a/fs/adfs/namei.c +++ b/fs/adfs/namei.c @@ -46,9 +46,6 @@ static int adfs_find_entry (struct inode *dir, const char * const name, int name unsigned long parent_object_id, dir_object_id; int buffers, pos; - if (!S_ISDIR(dir->i_mode)) - return 0; - sb = dir->i_sb; if (adfs_inode_validate (dir)) { @@ -57,9 +54,6 @@ static int adfs_find_entry (struct inode *dir, const char * const name, int name return 0; } - if (namelen > ADFS_NAME_LEN) - return 0; - if (!(buffers = adfs_dir_read (dir, bh))) { adfs_error (sb, "adfs_find_entry", "unable to read directory"); return 0; |