os/fs/smartfs: Remove redundant check for end of file sectors
The check for the end of file sectors is done at the beginning of the
while loop, don't need to check again at the end.
@@ -576,14 +576,6 @@ static ssize_t smartfs_read(FAR struct file *filep, char *buffer, size_t buflen)
sf->currsector = SMARTFS_NEXTSECTOR(header);
sf->curroffset = sizeof(struct smartfs_chain_header_s);
-
- /* Test if at end of data */
-
- if (sf->currsector == SMARTFS_ERASEDSTATE_16BIT) {
- /* No more data! Return what we have */
-
- break;
- }
}
}
