* try to read manufacturer id of serial memory,
* then check if is equal to selected type.
*/
* try to read manufacturer id of serial memory,
* then check if is equal to selected type.
*/
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);