]> git.proxmox.com Git - mirror_edk2.git/commitdiff
return value not follow spec.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Apr 2009 02:29:49 +0000 (02:29 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 7 Apr 2009 02:29:49 +0000 (02:29 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8028 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c
MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c
MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c
MdeModulePkg/Universal/Console/TerminalDxe/TerminalConIn.c
Nt32Pkg/WinNtGopDxe/WinNtGopInput.c

index b1d4fa2fdb69ea698d85de0dfbc51e483c052fed..cc4ce812f111935bb5df2ab56a00be495b6b359b 100644 (file)
@@ -665,7 +665,6 @@ Exit:
   \r
     @retval EFI_SUCCESS             - The notification function was unregistered successfully.\r
     @retval EFI_INVALID_PARAMETER   - The NotificationHandle is invalid.\r
-    @retval EFI_NOT_FOUND           - Can not find the matching entry in database.  \r
                               \r
 **/   \r
 EFI_STATUS\r
@@ -718,7 +717,7 @@ KeyboardUnregisterKeyNotify (
   //\r
   // Can not find the specified Notification Handle\r
   //\r
-  Status = EFI_NOT_FOUND;\r
+  Status = EFI_INVALID_PARAMETER;\r
 Exit:\r
   //\r
   // Leave critical section and return\r
index e2c86b07b44a633d5d18a5cc321a36049e73fa3e..7ff7f1ca67533fe29de5e02c405cf16200b22829 100644 (file)
@@ -1084,7 +1084,6 @@ USBKeyboardRegisterKeyNotify (
 \r
   @retval EFI_SUCCESS              The notification function was unregistered successfully.\r
   @retval EFI_INVALID_PARAMETER    The NotificationHandle is invalid\r
-  @retval EFI_NOT_FOUND            Cannot find the matching entry in database.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1133,6 +1132,9 @@ USBKeyboardUnregisterKeyNotify (
     }\r
   }\r
 \r
-  return EFI_NOT_FOUND;  \r
+  //\r
+  // Cannot find the matching entry in database.\r
+  //\r
+  return EFI_INVALID_PARAMETER;  \r
 }\r
 \r
index 27fa58f8154fb963f383923cf832176398c6757c..3389f62f98051c4bff361360ab204bffec474663 100644 (file)
@@ -3666,7 +3666,6 @@ ConSplitterTextInRegisterKeyNotify (
   @retval EFI_SUCCESS              The notification function was unregistered\r
                                    successfully.\r
   @retval EFI_INVALID_PARAMETER    The NotificationHandle is invalid.\r
-  @retval EFI_NOT_FOUND            Can not find the matching entry in database.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -3720,8 +3719,10 @@ ConSplitterTextInUnregisterKeyNotify (
     }\r
   }\r
 \r
-  return EFI_NOT_FOUND;\r
-\r
+  //\r
+  // NotificationHandle is not found in database\r
+  //\r
+  return EFI_INVALID_PARAMETER;\r
 }\r
 \r
 \r
index 44b62d7aed03fd372b3f74eec8935c60f9a6b045..d8305724b83b00b519284038606c5a2053f10d2f 100644 (file)
@@ -426,7 +426,6 @@ TerminalConInRegisterKeyNotify (
   @retval EFI_SUCCESS              The notification function was unregistered\r
                                    successfully.\r
   @retval EFI_INVALID_PARAMETER    The NotificationHandle is invalid.\r
-  @retval EFI_NOT_FOUND            Can not find the matching entry in database.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -470,7 +469,10 @@ TerminalConInUnregisterKeyNotify (
     }\r
   }\r
 \r
-  return EFI_NOT_FOUND;\r
+  //\r
+  // Can not find the matching entry in database.\r
+  //\r
+  return EFI_INVALID_PARAMETER;\r
 }\r
 \r
 /**\r
index e9866740ceebe6d80525e65a00ebaefb3a971be4..ccf75f5fcee489300866d2f213c9670590d3ba08 100644 (file)
@@ -786,7 +786,6 @@ WinNtGopSimpleTextInExUnregisterKeyNotify (
   Returns:\r
     EFI_SUCCESS             - The notification function was unregistered successfully.\r
     EFI_INVALID_PARAMETER   - The NotificationHandle is invalid.\r
-    EFI_NOT_FOUND           - Can not find the matching entry in database.  \r
                               \r
 --*/   \r
 {\r
@@ -825,7 +824,7 @@ WinNtGopSimpleTextInExUnregisterKeyNotify (
   //\r
   // Can not find the specified Notification Handle\r
   //\r
-  return EFI_NOT_FOUND;\r
+  return EFI_INVALID_PARAMETER;\r
 }\r
 \r
 /**\r