diff options
Diffstat (limited to 'block-vvfat.c')
-rw-r--r-- | block-vvfat.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block-vvfat.c b/block-vvfat.c index 08d426bbd5..9394fbd69c 100644 --- a/block-vvfat.c +++ b/block-vvfat.c @@ -93,7 +93,6 @@ static inline void array_free(array_t* array) /* does not automatically grow */ static inline void* array_get(array_t* array,unsigned int index) { - assert(index >= 0); assert(index < array->next); return array->pointer + index * array->item_size; } @@ -195,7 +194,6 @@ static int array_remove(array_t* array,int index) static int array_index(array_t* array, void* pointer) { size_t offset = (char*)pointer - array->pointer; - assert(offset >= 0); assert((offset % array->item_size) == 0); assert(offset/array->item_size < array->next); return offset/array->item_size; @@ -2238,7 +2236,6 @@ static int commit_one_file(BDRVVVFATState* s, assert((size - offset == 0 && fat_eof(s, c)) || (size > offset && c >=2 && !fat_eof(s, c))); - assert(size >= 0); ret = vvfat_read(s->bs, cluster2sector(s, c), (uint8_t*)cluster, (rest_size + 0x1ff) / 0x200); |