&Private->LoadFileCallback\r
);\r
}\r
+\r
//\r
// Check download status\r
//\r
- switch (Status) {\r
-\r
- case EFI_SUCCESS:\r
+ if (Status == EFI_SUCCESS) {\r
return EFI_SUCCESS;\r
\r
- case EFI_BUFFER_TOO_SMALL:\r
+ } else if (Status == EFI_BUFFER_TOO_SMALL) {\r
if (Buffer != NULL) {\r
AsciiPrint ("PXE-E05: Download buffer is smaller than requested file.\n");\r
} else {\r
return Status;\r
}\r
- break;\r
\r
- case EFI_DEVICE_ERROR:\r
+ } else if (Status == EFI_DEVICE_ERROR) {\r
AsciiPrint ("PXE-E07: Network device error.\n");\r
- break;\r
\r
- case EFI_OUT_OF_RESOURCES:\r
+ } else if (Status == EFI_OUT_OF_RESOURCES) {\r
AsciiPrint ("PXE-E09: Could not allocate I/O buffers.\n");\r
- break;\r
\r
- case EFI_NO_MEDIA:\r
+ } else if (Status == EFI_NO_MEDIA) {\r
AsciiPrint ("PXE-E12: Could not detect network connection.\n");\r
- break;\r
\r
- case EFI_NO_RESPONSE:\r
+ } else if (Status == EFI_NO_RESPONSE) {\r
AsciiPrint ("PXE-E16: No offer received.\n");\r
- break;\r
\r
- case EFI_TIMEOUT:\r
+ } else if (Status == EFI_TIMEOUT) {\r
AsciiPrint ("PXE-E18: Server response timeout.\n");\r
- break;\r
\r
- case EFI_ABORTED:\r
+ } else if (Status == EFI_ABORTED) {\r
AsciiPrint ("PXE-E21: Remote boot cancelled.\n");\r
- break;\r
\r
- case EFI_ICMP_ERROR:\r
+ } else if (Status == EFI_ICMP_ERROR) {\r
AsciiPrint ("PXE-E22: Client received ICMP error from server.\n");\r
- break;\r
\r
- case EFI_TFTP_ERROR:\r
+ } else if (Status == EFI_TFTP_ERROR) {\r
AsciiPrint ("PXE-E23: Client received TFTP error from server.\n");\r
- break;\r
\r
- default:\r
+ } else {\r
AsciiPrint ("PXE-E99: Unexpected network error.\n");\r
- break;\r
}\r
\r
PxeBc->Stop (PxeBc);\r