From ab37b149729639fc96a9987f711d18f5286c5541 Mon Sep 17 00:00:00 2001 From: anatasluo Date: Mon, 31 Aug 2020 01:26:47 +0800 Subject: [PATCH] fs/tmpfs: Remove duplicated code Signed-off-by: anatasluo --- fs/tmpfs/fs_tmpfs.c | 5 ----- 1 file changed, 5 deletions(-) mode change 100644 => 100755 fs/tmpfs/fs_tmpfs.c diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c old mode 100644 new mode 100755 index 81796ecc18..8568262032 --- 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;