diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-14 07:58:32 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-14 07:58:32 +0000 |
commit | d35be2a434d347c0ff112f89c120a5c8a79c89a7 (patch) | |
tree | 9528fda833578605b082dd18d84a012122c510f4 /IntelFrameworkModulePkg | |
parent | ed72357a70995788a361e16240148d097525059e (diff) | |
download | edk2-d35be2a434d347c0ff112f89c120a5c8a79c89a7.zip edk2-d35be2a434d347c0ff112f89c120a5c8a79c89a7.tar.gz edk2-d35be2a434d347c0ff112f89c120a5c8a79c89a7.tar.bz2 |
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
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c b/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c index 061222d..6a1d212 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;
|