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
This commit is contained in:
lgao4
2007-08-14 07:58:32 +00:00
parent ed72357a70
commit d35be2a434
8 changed files with 32 additions and 51 deletions

View File

@ -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;