]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c
Fix clang compiler warning.
[mirror_edk2.git] / ShellPkg / Library / UefiShellInstall1CommandsLib / Bcfg.c
index 1713d3bafcab5a87450cec815ec3ef4e0648f3c6..921ebe5485216f7e2e9fab5fcb4c0eb571242bae 100644 (file)
@@ -929,7 +929,7 @@ BcfgAddOptInstall1(
   //\r
   ASSERT(FileName == NULL || Data == NULL);\r
 \r
-  if (ShellStatus == SHELL_SUCCESS && FileName != NULL || Data != NULL) {\r
+  if (ShellStatus == SHELL_SUCCESS && (FileName != NULL || Data != NULL)) {\r
     if (FileName != NULL) {\r
       //\r
       // Open the file and populate the data buffer.\r
@@ -948,7 +948,7 @@ BcfgAddOptInstall1(
         ShellStatus = SHELL_OUT_OF_RESOURCES;\r
       }\r
       if (ShellStatus == SHELL_SUCCESS) {\r
-        ShellStatus = ShellReadFile(FileHandle, &(UINTN)Intermediate, Data);\r
+        ShellStatus = ShellReadFile(FileHandle, (UINTN *)&Intermediate, Data);\r
       }\r
     } else {\r
       Intermediate = StrSize(Data);\r