You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/08/31 02:41:39 UTC
[incubator-nuttx] branch master updated: fs/tmpfs: Remove
duplicated code
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ab37b14 fs/tmpfs: Remove duplicated code
ab37b14 is described below
commit ab37b149729639fc96a9987f711d18f5286c5541
Author: anatasluo <lu...@gmail.com>
AuthorDate: Mon Aug 31 01:26:47 2020 +0800
fs/tmpfs: Remove duplicated code
Signed-off-by: anatasluo <lu...@gmail.com>
---
fs/tmpfs/fs_tmpfs.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c
old mode 100644
new mode 100755
index 81796ec..8568262
--- a/fs/tmpfs/fs_tmpfs.c
+++ b/fs/tmpfs/fs_tmpfs.c
@@ -339,11 +339,6 @@ static int tmpfs_realloc_directory(FAR struct tmpfs_directory_s **tdo,
newtdo->tdo_nentries = nentries;
*tdo = newtdo;
- /* Adjust the reference in the parent directory entry */
-
- DEBUGASSERT(newtdo->tdo_dirent);
- newtdo->tdo_dirent->tde_object = (FAR struct tmpfs_object_s *)newtdo;
-
/* Return the index to the first, newly allocated directory entry */
return ret;