bootindex: support to set a existent device's bootindex to -1

When set a device's bootindex to -1, we remove it from global
fw_boot_order list.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gonglei 2014-10-07 16:00:10 +08:00 committed by Gerd Hoffmann
parent e614b54b93
commit a598f2ffc2
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev,
FWBootEntry *node, *i;
if (bootindex < 0) {
del_boot_device_path(dev, suffix);
return;
}