aboutsummaryrefslogtreecommitdiff
path: root/block/vvfat.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-09-30 21:15:39 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-03 06:40:54 +0000
commitd523d5d69409a2bb3b5a2c53179d190d2a8c06b2 (patch)
treead47fa492d998cba556940adbfa00e75c76045c7 /block/vvfat.c
parentc9ba47dc5d8679efa4d5425aa27e0f8132920fb5 (diff)
downloadqemu-d523d5d69409a2bb3b5a2c53179d190d2a8c06b2.zip
qemu-d523d5d69409a2bb3b5a2c53179d190d2a8c06b2.tar.gz
qemu-d523d5d69409a2bb3b5a2c53179d190d2a8c06b2.tar.bz2
block/vvfat: Fix compiler warning in debug code
Fix this compiler warning: ./block/vvfat.c:2285: error: comparison of unsigned expression >= 0 is always true Cc: Blue Swirl <blauwirbel@gmail.com> Cc: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block/vvfat.c')
-rw-r--r--block/vvfat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/vvfat.c b/block/vvfat.c
index 53e57bf..26dd474 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -2282,7 +2282,6 @@ static void check1(BDRVVVFATState* s)
fprintf(stderr, "deleted\n");
continue;
}
- assert(mapping->dir_index >= 0);
assert(mapping->dir_index < s->directory.next);
direntry_t* direntry = array_get(&(s->directory), mapping->dir_index);
assert(mapping->begin == begin_of_direntry(direntry) || mapping->first_mapping_index >= 0);