fs/tmpfs: Remove duplicated code

Signed-off-by: anatasluo <luolongjuna@gmail.com>
This commit is contained in:
anatasluo 2020-08-31 01:26:47 +08:00 committed by Xiang Xiao
parent 58e43adf08
commit ab37b14972
1 changed files with 0 additions and 5 deletions

5
fs/tmpfs/fs_tmpfs.c Normal file → Executable file
View File

@ -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;