Skip to content
Snippets Groups Projects
Commit ce183fd7 authored by Michal Simek's avatar Michal Simek
Browse files

xilinx: Fix logic when dfu_alt_info is generated

parent 79f01513
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
{
ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
env_get("dfu_alt_info"))
if (env_get("dfu_alt_info"))
return;
memset(buf, 0, sizeof(buf));
......
......@@ -641,8 +641,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
env_get("dfu_alt_info"))
if (env_get("dfu_alt_info"))
return;
memset(buf, 0, sizeof(buf));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment