diff --git a/fs/smartfs/smartfs_utils.c b/fs/smartfs/smartfs_utils.c index b0271653d2a..90b3db185eb 100644 --- a/fs/smartfs/smartfs_utils.c +++ b/fs/smartfs/smartfs_utils.c @@ -1765,8 +1765,8 @@ int smartfs_shrinkfile(FAR struct smartfs_mountpt_s *fs, remaining = 0; } } - else #endif + /* Are we retaining the sector it its entirety? */ if (remaining >= available)