From a598f2ffc2df59afcea5454fb353b849911da90b Mon Sep 17 00:00:00 2001 From: Gonglei Date: Tue, 7 Oct 2014 16:00:10 +0800 Subject: 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 Reviewed-by: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- bootdevice.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bootdevice.c') diff --git a/bootdevice.c b/bootdevice.c index aac0ffbcef..a38479a72a 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -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; } -- cgit v1.2.1