Commit 75d12341 authored by Stefan Weil's avatar Stefan Weil Committed by Stefan Hajnoczi
Browse files

block/vmdk: Fix warning from splint (comparision of unsigned value)



l1_entry_sectors will never be less than 0.

Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
parent beae9d79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -453,7 +453,7 @@ static int vmdk_open_vmdk4(BlockDriverState *bs,
    }
    l1_entry_sectors = le32_to_cpu(header.num_gtes_per_gte)
                        * le64_to_cpu(header.granularity);
    if (l1_entry_sectors <= 0) {
    if (l1_entry_sectors == 0) {
        return -EINVAL;
    }
    l1_size = (le64_to_cpu(header.capacity) + l1_entry_sectors - 1)