mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
vbe: Avoid a build failure when bloblist is not enabled
This needs to be able to work (at least partially) without the bloblist active. Add a condition for this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
67bb973122
commit
f1779f2cc3
1 changed files with 5 additions and 2 deletions
|
@ -79,10 +79,13 @@ static int do_vbe_info(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
static int do_vbe_state(struct cmd_tbl *cmdtp, int flag, int argc,
|
static int do_vbe_state(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
char *const argv[])
|
char *const argv[])
|
||||||
{
|
{
|
||||||
struct vbe_handoff *handoff;
|
struct vbe_handoff *handoff = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
handoff = bloblist_find(BLOBLISTT_VBE, sizeof(struct vbe_handoff));
|
if (IS_ENABLED(CONFIG_BLOBLIST)) {
|
||||||
|
handoff = bloblist_find(BLOBLISTT_VBE,
|
||||||
|
sizeof(struct vbe_handoff));
|
||||||
|
}
|
||||||
if (!handoff) {
|
if (!handoff) {
|
||||||
printf("No VBE state\n");
|
printf("No VBE state\n");
|
||||||
return CMD_RET_FAILURE;
|
return CMD_RET_FAILURE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue