mirror of https://github.com/acidanthera/audk.git
OvmfPkg: SataControllerDxe: SataControllerStop: remove useless null check
"ASSERT (SataPrivateData != NULL)" is just a few lines higher up. Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
dea0d6bf2f
commit
81310a62be
|
@ -602,18 +602,16 @@ SataControllerStop (
|
|||
return Status;
|
||||
}
|
||||
|
||||
if (SataPrivateData != NULL) {
|
||||
if (SataPrivateData->DisqualifiedModes != NULL) {
|
||||
FreePool (SataPrivateData->DisqualifiedModes);
|
||||
}
|
||||
if (SataPrivateData->IdentifyData != NULL) {
|
||||
FreePool (SataPrivateData->IdentifyData);
|
||||
}
|
||||
if (SataPrivateData->IdentifyValid != NULL) {
|
||||
FreePool (SataPrivateData->IdentifyValid);
|
||||
}
|
||||
FreePool (SataPrivateData);
|
||||
if (SataPrivateData->DisqualifiedModes != NULL) {
|
||||
FreePool (SataPrivateData->DisqualifiedModes);
|
||||
}
|
||||
if (SataPrivateData->IdentifyData != NULL) {
|
||||
FreePool (SataPrivateData->IdentifyData);
|
||||
}
|
||||
if (SataPrivateData->IdentifyValid != NULL) {
|
||||
FreePool (SataPrivateData->IdentifyValid);
|
||||
}
|
||||
FreePool (SataPrivateData);
|
||||
|
||||
//
|
||||
// Restore original PCI attributes
|
||||
|
|
Loading…
Reference in New Issue