[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Clean up assertion in get_boot_devices_list()
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PATCH] Clean up assertion in get_boot_devices_list() |
Date: |
Tue, 8 Nov 2011 10:58:00 +0100 |
g_strdup() can't fail, remove assertion. Assert its argument can't be
null, because that's not obvious (add_boot_device_path() ensures it).
Signed-off-by: Markus Armbruster <address@hidden>
---
vl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index 641629b..f169aac 100644
--- a/vl.c
+++ b/vl.c
@@ -915,8 +915,8 @@ char *get_boot_devices_list(uint32_t *size)
} else if (devpath) {
bootpath = devpath;
} else {
+ assert(i->suffix);
bootpath = g_strdup(i->suffix);
- assert(bootpath);
}
if (total) {
--
1.7.6.4
- [Qemu-devel] [PATCH] Clean up assertion in get_boot_devices_list(),
Markus Armbruster <=