From 18c05a168124a027aa481ab79d4527f1767939e6 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 5 Apr 2017 16:28:50 +0200 Subject: bootchooser: register as bootentry provider Instead of using a global function called by bootentry_create_from_name(), register the bootchooser as bootentry provider. Signed-off-by: Sascha Hauer --- common/boot.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'common/boot.c') diff --git a/common/boot.c b/common/boot.c index 3280ac4f54..cef3d5e514 100644 --- a/common/boot.c +++ b/common/boot.c @@ -289,12 +289,6 @@ int bootentry_create_from_name(struct bootentries *bootentries, found += ret; } - if (IS_ENABLED(CONFIG_BOOTCHOOSER) && !strcmp(name, "bootchooser")) { - ret = bootchooser_create_bootentry(bootentries); - if (ret > 0) - found += ret; - } - if (!found) { char *path; -- cgit v1.2.3