Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- commands/menu.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/commands/menu.c b/commands/menu.c index b874ccb..f3bd78d 100644 --- a/commands/menu.c +++ b/commands/menu.c @@ -80,9 +80,8 @@ static int do_menu_entry_add(struct cmd_menu *cm) } me = menu_entry_alloc(); - if (!me) - goto free; + return -ENOMEM; if (cm->submenu) { me->action = menu_action_show; -- 1.7.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox