Remove NULL_HANDLE. NULL_HANDLE should be replaced with NULL as consistency. For now, only DXE core is using this macro.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5836 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -975,7 +975,7 @@ CoreStartImage (
|
||||
UINTN SetJumpFlag;
|
||||
|
||||
Image = CoreLoadedImageInfo (ImageHandle);
|
||||
if (Image == NULL_HANDLE || Image->Started) {
|
||||
if (Image == NULL || Image->Started) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
@ -1143,7 +1143,7 @@ CoreUnloadAndCloseImage (
|
||||
//
|
||||
// Free our references to the image handle
|
||||
//
|
||||
if (Image->Handle != NULL_HANDLE) {
|
||||
if (Image->Handle != NULL) {
|
||||
|
||||
Status = CoreLocateHandleBuffer (
|
||||
AllHandles,
|
||||
@ -1289,7 +1289,7 @@ CoreExit (
|
||||
OldTpl = CoreRaiseTpl (TPL_NOTIFY);
|
||||
|
||||
Image = CoreLoadedImageInfo (ImageHandle);
|
||||
if (Image == NULL_HANDLE) {
|
||||
if (Image == NULL) {
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
goto Done;
|
||||
}
|
||||
|
Reference in New Issue
Block a user