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:
@ -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;
|
||||
|
Reference in New Issue
Block a user