[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH] block/vmdk: Fix warning from splint (comparision
From: |
Stefan Weil |
Subject: |
[Qemu-trivial] [PATCH] block/vmdk: Fix warning from splint (comparision of unsigned value) |
Date: |
Sat, 25 Feb 2012 14:01:42 +0100 |
l1_entry_sectors will never be less than 0.
Signed-off-by: Stefan Weil <address@hidden>
---
block/vmdk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/vmdk.c b/block/vmdk.c
index 5623ac1..45c003a 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -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)
--
1.7.9
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-trivial] [PATCH] block/vmdk: Fix warning from splint (comparision of unsigned value),
Stefan Weil <=