return value not follow spec.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8028 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2009-04-07 02:29:49 +00:00
parent 395ed063d9
commit 8a67d804b3
5 changed files with 14 additions and 11 deletions

View File

@ -665,7 +665,6 @@ Exit:
@retval EFI_SUCCESS - The notification function was unregistered successfully.
@retval EFI_INVALID_PARAMETER - The NotificationHandle is invalid.
@retval EFI_NOT_FOUND - Can not find the matching entry in database.
**/
EFI_STATUS
@ -718,7 +717,7 @@ KeyboardUnregisterKeyNotify (
//
// Can not find the specified Notification Handle
//
Status = EFI_NOT_FOUND;
Status = EFI_INVALID_PARAMETER;
Exit:
//
// Leave critical section and return

View File

@ -1084,7 +1084,6 @@ USBKeyboardRegisterKeyNotify (
@retval EFI_SUCCESS The notification function was unregistered successfully.
@retval EFI_INVALID_PARAMETER The NotificationHandle is invalid
@retval EFI_NOT_FOUND Cannot find the matching entry in database.
**/
EFI_STATUS
@ -1133,6 +1132,9 @@ USBKeyboardUnregisterKeyNotify (
}
}
return EFI_NOT_FOUND;
//
// Cannot find the matching entry in database.
//
return EFI_INVALID_PARAMETER;
}

View File

@ -3666,7 +3666,6 @@ ConSplitterTextInRegisterKeyNotify (
@retval EFI_SUCCESS The notification function was unregistered
successfully.
@retval EFI_INVALID_PARAMETER The NotificationHandle is invalid.
@retval EFI_NOT_FOUND Can not find the matching entry in database.
**/
EFI_STATUS
@ -3720,8 +3719,10 @@ ConSplitterTextInUnregisterKeyNotify (
}
}
return EFI_NOT_FOUND;
//
// NotificationHandle is not found in database
//
return EFI_INVALID_PARAMETER;
}

View File

@ -426,7 +426,6 @@ TerminalConInRegisterKeyNotify (
@retval EFI_SUCCESS The notification function was unregistered
successfully.
@retval EFI_INVALID_PARAMETER The NotificationHandle is invalid.
@retval EFI_NOT_FOUND Can not find the matching entry in database.
**/
EFI_STATUS
@ -470,7 +469,10 @@ TerminalConInUnregisterKeyNotify (
}
}
return EFI_NOT_FOUND;
//
// Can not find the matching entry in database.
//
return EFI_INVALID_PARAMETER;
}
/**

View File

@ -786,7 +786,6 @@ WinNtGopSimpleTextInExUnregisterKeyNotify (
Returns:
EFI_SUCCESS - The notification function was unregistered successfully.
EFI_INVALID_PARAMETER - The NotificationHandle is invalid.
EFI_NOT_FOUND - Can not find the matching entry in database.
--*/
{
@ -825,7 +824,7 @@ WinNtGopSimpleTextInExUnregisterKeyNotify (
//
// Can not find the specified Notification Handle
//
return EFI_NOT_FOUND;
return EFI_INVALID_PARAMETER;
}
/**