diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-11-08 10:58:00 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-11-09 12:06:20 -0600 |
commit | 1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7 (patch) | |
tree | 77aa3ccc965778ceebb5a5430bf450614a2104c3 | |
parent | bfc763fcfa80d89d31c4f801c2a82130dd92c708 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |