From d523d5d69409a2bb3b5a2c53179d190d2a8c06b2 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 30 Sep 2010 21:15:39 +0200 Subject: [PATCH] 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 Cc: Kevin Wolf Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- block/vvfat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/vvfat.c b/block/vvfat.c index 53e57bf228..26dd474bb5 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);