summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_util.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-23 19:55:32 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-23 19:55:32 +0000
commit942bbb7ad67be9b4117e752fcb4bcac280452f9f (patch)
treec9f06686092f52befad620eaf5a4a0edbcb33a44 /nuttx/fs/nfs/nfs_util.c
parent782a98407637ecdf9afa27d99cd178d1c75db4d3 (diff)
downloadpx4-nuttx-942bbb7ad67be9b4117e752fcb4bcac280452f9f.tar.gz
px4-nuttx-942bbb7ad67be9b4117e752fcb4bcac280452f9f.tar.bz2
px4-nuttx-942bbb7ad67be9b4117e752fcb4bcac280452f9f.zip
Kconfig updated + NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4646 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_util.c')
-rwxr-xr-xnuttx/fs/nfs/nfs_util.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/nuttx/fs/nfs/nfs_util.c b/nuttx/fs/nfs/nfs_util.c
index 6f5dd6991..a6c82ab22 100755
--- a/nuttx/fs/nfs/nfs_util.c
+++ b/nuttx/fs/nfs/nfs_util.c
@@ -126,21 +126,8 @@ int nfs_checkmount(struct nfsmount *nmp)
*/
DEBUGASSERT(nmp);
- if (nmp->nm_mounted)
+ if (!nmp->nm_mounted)
{
- /* We still think the mount is healthy. Check an see if this is
- * still the case
- */
-
-#warning "This makes no sense... If you get here, then you know that nmp->nm_mounted and the code will always return OK. Something is wrong."
- if (nmp->nm_mounted == true)
- {
- return OK;
- }
- /* If we get here, the mount is NOT healthy */
-
- nmp->nm_mounted = false;
-
/* Make sure that this is flagged in every opened file */
for (file = nmp->nm_head; file; file = file->n_next)