fs/tmpfs: Remove duplicated code
Signed-off-by: anatasluo <luolongjuna@gmail.com>
This commit is contained in:
parent
58e43adf08
commit
ab37b14972
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue