from the UEFI shell. It is entirely read-only.\r
\r
Copyright (c) 2014, ARM Limited. All rights reserved.\r
-Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
// Create an instance\r
//\r
Instance = AllocateZeroPool (sizeof (FV_FILESYSTEM_INSTANCE));\r
- if (Instance == NULL) {\r
- return EFI_OUT_OF_RESOURCES;\r
- }\r
+ ASSERT (Instance != NULL);\r
\r
Instance->Root = NULL;\r
Instance->FvProtocol = FvProtocol;\r
EFI_NATIVE_INTERFACE,\r
&Instance->SimpleFs\r
);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
//\r
// Decide on a filesystem volume label, which will include the FV's guid.\r
(VOID **) &FvDevicePath,\r
gImageHandle,\r
ControllerHandle,\r
- EFI_OPEN_PROTOCOL_BY_DRIVER\r
+ EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
);\r
if (!EFI_ERROR (Status)) {\r
//\r
);\r
}\r
\r
- return Status;\r
+ return EFI_SUCCESS;\r
}\r
\r
/**\r