aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-11-08 10:58:00 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-11-09 12:06:20 -0600
commit1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7 (patch)
tree77aa3ccc965778ceebb5a5430bf450614a2104c3
parentbfc763fcfa80d89d31c4f801c2a82130dd92c708 (diff)
Clean up assertion in get_boot_devices_list()
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 <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 641629b1ce..f169aac1f9 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) {