From 942bbb7ad67be9b4117e752fcb4bcac280452f9f Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 23 Apr 2012 19:55:32 +0000 Subject: Kconfig updated + NFS update git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4646 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/fs/nfs/nfs_util.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'nuttx/fs/nfs/nfs_util.c') 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) -- cgit v1.2.3