Skip to content

Commit

Permalink
fs/tmpfs: Remove duplicated code
Browse files Browse the repository at this point in the history
Signed-off-by: anatasluo <luolongjuna@gmail.com>
  • Loading branch information
anatasluo authored and xiaoxiang781216 committed Aug 31, 2020
1 parent 58e43ad commit ab37b14
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/tmpfs/fs_tmpfs.c 100644 → 100755
Expand Up @@ -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;
Expand Down

1 comment on commit ab37b14

@hartmannathan
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit made fs/tmpfs/fs_tmpfs.c executable.

I am creating PR-1680 to fix this file and boards/arm/cxd56xx/drivers/audio/cxd56_audio_bca_reg.h as well.

Please sign in to comment.