diff options
Diffstat (limited to 'nuttx/fs/nfs/nfs_util.c')
-rwxr-xr-x | nuttx/fs/nfs/nfs_util.c | 15 |
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) |