mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2025-10-05 07:12:53 +00:00
MdeModulePkg/SataControllerDxe: Remove useless null check
ASSERT (Private != NULL) already covers this check.
See commit 81310a6
.
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
897a2b447e
commit
82b81c6464
@ -626,7 +626,6 @@ SataControllerStop (
|
||||
return Status;
|
||||
}
|
||||
|
||||
if (Private != NULL) {
|
||||
if (Private->DisqualifiedModes != NULL) {
|
||||
FreePool (Private->DisqualifiedModes);
|
||||
}
|
||||
@ -652,7 +651,6 @@ SataControllerStop (
|
||||
}
|
||||
|
||||
FreePool (Private);
|
||||
}
|
||||
|
||||
//
|
||||
// Close protocols opened by Sata Controller driver
|
||||
|
Loading…
Reference in New Issue
Block a user