mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
bfc763fcfa
commit
1bf6ccd372
1 changed files with 1 additions and 1 deletions
2
vl.c
2
vl.c
|
@ -915,8 +915,8 @@ char *get_boot_devices_list(uint32_t *size)
|
||||||
} else if (devpath) {
|
} else if (devpath) {
|
||||||
bootpath = devpath;
|
bootpath = devpath;
|
||||||
} else {
|
} else {
|
||||||
|
assert(i->suffix);
|
||||||
bootpath = g_strdup(i->suffix);
|
bootpath = g_strdup(i->suffix);
|
||||||
assert(bootpath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (total) {
|
if (total) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue