aboutsummaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/nfs/nfs_vfsops.c')
-rw-r--r--nuttx/fs/nfs/nfs_vfsops.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/nuttx/fs/nfs/nfs_vfsops.c b/nuttx/fs/nfs/nfs_vfsops.c
index 3b5a12cbe..b8b8eb031 100644
--- a/nuttx/fs/nfs/nfs_vfsops.c
+++ b/nuttx/fs/nfs/nfs_vfsops.c
@@ -1890,17 +1890,6 @@ static int nfs_remove(struct inode *mountpt, const char *relpath)
goto errout_with_semaphore;
}
- /* We found something at this path. Make sure that it is not a directory. */
-
-#if 0 /* We have the attributes of the directory, not of the object to be deleted */
- if (fxdr_unsigned(uint32_t, fattr.fa_type) == NFDIR)
- {
- fdbg("ERROR: \"%s\" is a directory\n", relpath);
- error = EISDIR;
- goto errout_with_semaphore;
- }
-#endif
-
/* Create the REMOVE RPC call arguments */
ptr = (FAR uint32_t *)&remove;