summaryrefslogtreecommitdiffstats
path: root/fs/smbfs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/smbfs/dir.c')
-rw-r--r--fs/smbfs/dir.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/smbfs/dir.c b/fs/smbfs/dir.c
index f2ba59c4f..30138872b 100644
--- a/fs/smbfs/dir.c
+++ b/fs/smbfs/dir.c
@@ -469,10 +469,6 @@ smb_rmdir(struct inode *dir, struct dentry *dentry)
struct inode *inode = dentry->d_inode;
int error;
- error = -ENOTDIR;
- if (!S_ISDIR(inode->i_mode))
- goto out;
-
/*
* Close the directory if it's open.
*/