Removed redundant check

`size_t` is guaranteed to be not negative.
This commit is contained in:
FrankHB 2015-06-02 00:34:49 +08:00
parent 1e06c677b6
commit affed015e1

View File

@ -602,7 +602,7 @@ static bool _FAT_check_position_for_next_cluster(struct _reent *r,
// do nothing if no more data to write // do nothing if no more data to write
if (remain == 0) return true; if (remain == 0) return true;
if (flagNoError && *flagNoError == false) return false; if (flagNoError && *flagNoError == false) return false;
if ((remain < 0) || (position->sector > partition->sectorsPerCluster)) { if (position->sector > partition->sectorsPerCluster) {
// invalid arguments - internal error // invalid arguments - internal error
r->_errno = EINVAL; r->_errno = EINVAL;
goto err; goto err;