U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Masahisa Kojima <masahisa.kojima@linaro.org>
Cc: u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Simon Glass <sjg@chromium.org>,
	Takahiro Akashi <takahiro.akashi@linaro.org>,
	Mark Kettenis <mark.kettenis@xs4all.nl>,
	Michal Simek <michal.simek@amd.com>,
	Ovidiu Panait <ovidiu.panait@windriver.com>,
	Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>,
	John Keeping <john@metanate.com>,
	Chris Morgan <macromorgan@hotmail.com>,
	Artem Lapkin <email2tema@gmail.com>,
	Huang Jianan <jnhuang95@gmail.com>
Subject: Re: [PATCH v13 1/9] eficonfig: menu-driven addition of UEFI boot option
Date: Wed, 24 Aug 2022 17:19:24 +0300	[thread overview]
Message-ID: <YwYzbLqd4Mm/3yS6@hades> (raw)
In-Reply-To: <20220824063740.5760-2-masahisa.kojima@linaro.org>

Kojima-san,

[...]

> +
> +/**
> + * eficonfig_init() - do required initialization for eficonfig command
> + *
> + * Return:	status code
> + */
> +static efi_status_t eficonfig_init(void)
> +{
> +	efi_status_t ret;


You need to initialize ret here to something.

> +	static bool init;
> +	struct efi_handler *handler;
> +
> +	if (!init) {
> +		ret = efi_search_protocol(efi_root, &efi_guid_text_input_protocol, &handler);
> +		if (ret != EFI_SUCCESS)
> +			return ret;
> +
> +		ret = efi_protocol_open(handler, (void **)&cin, efi_root, NULL,
> +					EFI_OPEN_PROTOCOL_GET_PROTOCOL);
> +		if (ret != EFI_SUCCESS)
> +			return ret;
> +	}

Because this code might never run

> +
> +	init = true;
> +
> +	return ret;
> +}
> +
> +static const struct eficonfig_item maintenance_menu_items[] = {
 
[...]


Regards
/Ilias

  parent reply	other threads:[~2022-08-24 14:19 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24  6:37 [PATCH v13 0/9] enable menu-driven UEFI variable maintenance Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 1/9] eficonfig: menu-driven addition of UEFI boot option Masahisa Kojima
2022-08-24 11:15   ` Ilias Apalodimas
2022-08-25  3:16     ` Masahisa Kojima
2022-08-24 14:19   ` Ilias Apalodimas [this message]
2022-08-25  3:17     ` Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 2/9] eficonfig: add "Edit Boot Option" menu entry Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 3/9] menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 4/9] eficonfig: add "Delete Boot Option" menu entry Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 5/9] bootmenu: add removable media entries Masahisa Kojima
2022-08-24 13:25   ` Ilias Apalodimas
2022-08-25  3:25     ` Masahisa Kojima
2022-08-25  8:03       ` Ilias Apalodimas
2022-08-25  8:26         ` Masahisa Kojima
2022-08-24 14:17   ` Ilias Apalodimas
2022-08-25  3:27     ` Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 6/9] eficonfig: add "Change Boot Order" menu entry Masahisa Kojima
2022-08-25  0:11   ` Takahiro Akashi
2022-08-25  2:36     ` Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 7/9] doc:bootmenu: add description for UEFI boot support Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 8/9] doc:eficonfig: add documentation for eficonfig command Masahisa Kojima
2022-08-24  9:13   ` Ilias Apalodimas
2022-08-25  2:11     ` Masahisa Kojima
2022-08-24  6:37 ` [PATCH v13 9/9] test: unit test for eficonfig Masahisa Kojima
2022-08-24  9:09   ` Ilias Apalodimas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YwYzbLqd4Mm/3yS6@hades \
    --to=ilias.apalodimas@linaro.org \
    --cc=ashok.reddy.soma@xilinx.com \
    --cc=email2tema@gmail.com \
    --cc=jnhuang95@gmail.com \
    --cc=john@metanate.com \
    --cc=macromorgan@hotmail.com \
    --cc=mark.kettenis@xs4all.nl \
    --cc=masahisa.kojima@linaro.org \
    --cc=michal.simek@amd.com \
    --cc=ovidiu.panait@windriver.com \
    --cc=sjg@chromium.org \
    --cc=takahiro.akashi@linaro.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox