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,7 +602,6 @@ SataControllerStop (
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SataPrivateData != NULL) {
|
|
||||||
if (SataPrivateData->DisqualifiedModes != NULL) {
|
if (SataPrivateData->DisqualifiedModes != NULL) {
|
||||||
FreePool (SataPrivateData->DisqualifiedModes);
|
FreePool (SataPrivateData->DisqualifiedModes);
|
||||||
}
|
}
|
||||||
|
@ -613,7 +612,6 @@ SataControllerStop (
|
||||||
FreePool (SataPrivateData->IdentifyValid);
|
FreePool (SataPrivateData->IdentifyValid);
|
||||||
}
|
}
|
||||||
FreePool (SataPrivateData);
|
FreePool (SataPrivateData);
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Restore original PCI attributes
|
// Restore original PCI attributes
|
||||||
|
|
Loading…
Reference in New Issue