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:
committed by
mergify[bot]
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
|
||||
|
Reference in New Issue
Block a user