From: AKASHI Takahiro Date: Mon, 7 Jan 2019 11:30:51 +0900 Subject: [U-Boot] [RESEND PATCH v2 2/6] efi_loader: Initial HII database protocols In-Reply-To: References: <20181214101043.14067-1-takahiro.akashi@linaro.org> <20181214101043.14067-3-takahiro.akashi@linaro.org> Message-ID: <20190107023050.GB9033@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jan 06, 2019 at 04:57:49PM +0100, Heinrich Schuchardt wrote: > On 12/14/18 11:10 AM, AKASHI Takahiro wrote: > > From: Leif Lindholm > > > > This patch provides enough implementation of the following protocols to > > run EDKII's Shell.efi and UEFI SCT: > > > > * EfiHiiDatabaseProtocol > > * EfiHiiStringProtocol > > > > > > > + > > +static efi_status_t EFIAPI > > +export_package_lists(const struct efi_hii_database_protocol *this, > > + efi_hii_handle_t handle, > > + efi_uintn_t *buffer_size, > > + struct efi_hii_package_list_header *buffer) > > +{ > > + EFI_ENTRY("%p, %p, %p, %p", this, handle, buffer_size, buffer); > > + > > + if (!buffer_size || (buffer_size && !buffer)) > > This can be simplified: > > if (!buffer_size || !buffer)) OK. -Takahiro Akashi > Regards > > Heinrich > > > + return EFI_EXIT(EFI_INVALID_PARAMETER); > > + > > + return EFI_EXIT(EFI_NOT_FOUND); > > +} >