summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c b/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
index 061222dae0..6a1d212d62 100644
--- a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
+++ b/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
@@ -851,8 +851,7 @@ Returns:
@param[in, out] AlgorithmGuidTable The decompress method guid list.
@param[in, out] NumberOfAlgorithms The number of decompress methods.
- @retval RETURN_SUCCESS Get all algorithmes list successfully.
- @retval RETURN_INVALID_PARAMETER Input paramter error.
+ @retval RETURN_SUCCESS Get all algorithmes list successfully.
@retval RETURN_OUT_OF_RESOURCES Source is not enough.
**/
@@ -863,18 +862,14 @@ CustomDecompressGetAlgorithms (
IN OUT UINT32 *NumberOfAlgorithms
)
{
- if (NumberOfAlgorithms == NULL) {
- return RETURN_INVALID_PARAMETER;
- }
+ ASSERT (NumberOfAlgorithms != NULL);
if (*NumberOfAlgorithms < 1) {
*NumberOfAlgorithms = 1;
return RETURN_OUT_OF_RESOURCES;
}
- if (AlgorithmGuidTable == NULL) {
- return RETURN_INVALID_PARAMETER;
- }
+ ASSERT (AlgorithmGuidTable != NULL);
AlgorithmGuidTable [0] = &gTianoCustomDecompressGuid;
*NumberOfAlgorithms = 1;