]> Git Repo - qemu.git/commitdiff
block/vvfat: Fix compiler warning in debug code
authorStefan Weil <[email protected]>
Thu, 30 Sep 2010 19:15:39 +0000 (21:15 +0200)
committerBlue Swirl <[email protected]>
Sun, 3 Oct 2010 06:40:54 +0000 (06:40 +0000)
Fix this compiler warning:
./block/vvfat.c:2285: error: comparison of unsigned expression >= 0 is always true

Cc: Blue Swirl <[email protected]>
Cc: Kevin Wolf <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
block/vvfat.c

index 53e57bf22867f1215dc343f0d081e7cffbc59785..26dd474bb5bdf3f086948750b8d40284e4bf3f0a 100644 (file)
@@ -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);
This page took 0.026484 seconds and 4 git commands to generate.