From d35be2a434d347c0ff112f89c120a5c8a79c89a7 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 14 Aug 2007 07:58:32 +0000 Subject: Sync code with MdePkg spec for Scsi library class and CustomDecompress library class. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3636 6f19259b-4bc3-4df7-8a09-765794883524 --- .../BaseUefiTianoCustomDecompressLib.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'IntelFrameworkModulePkg') 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; -- cgit v1.2.3