mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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
1 changed files with 9 additions and 11 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue