]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg Ps2KeyboardDxe: Remove a redundant function
authorshenglei <shenglei.zhang@intel.com>
Wed, 8 Aug 2018 00:54:08 +0000 (08:54 +0800)
committerLiming Gao <liming.gao@intel.com>
Fri, 24 Aug 2018 05:46:15 +0000 (22:46 -0700)
The redundant function DisableKeyboard which is never called
has been removed.
https://bugzilla.tianocore.org/show_bug.cgi?id=1063

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <shenglei.zhang@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c
IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h

index 78c4e3b3919da5e9754e98cbd406a56bb9554225..202588191e3dd310fbcfe74f6ae8c57dfb70082b 100644 (file)
@@ -1848,32 +1848,7 @@ Done:
 \r
 }\r
 \r
-/**\r
-  Disable the keyboard interface of the 8042 controller.\r
-\r
-  @param ConsoleIn   The device instance\r
-\r
-  @return status of issuing disable command\r
-\r
-**/\r
-EFI_STATUS\r
-DisableKeyboard (\r
-  IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn\r
-  )\r
-{\r
-  EFI_STATUS  Status;\r
 \r
-  //\r
-  // Disable keyboard interface\r
-  //\r
-  Status = KeyboardCommand (ConsoleIn, KEYBOARD_8042_COMMAND_DISABLE_KEYBOARD_INTERFACE);\r
-  if (EFI_ERROR (Status)) {\r
-    KeyboardError (ConsoleIn, L"\n\r");\r
-    return EFI_DEVICE_ERROR;\r
-  }\r
-\r
-  return Status;\r
-}\r
 \r
 /**\r
   Check whether there is Ps/2 Keyboard device in system by 0xF4 Keyboard Command\r
index 613f176401ec6b09bb5a25e5506245e1556c5708..220d17419c2dda76024a699cfa9e87b4f4b1c1f7 100644 (file)
@@ -299,18 +299,7 @@ InitKeyboard (
   IN BOOLEAN                     ExtendedVerification\r
   );\r
 \r
-/**\r
-  Disable the keyboard interface of the 8042 controller.\r
-\r
-  @param ConsoleIn   - the device instance\r
 \r
-  @return status of issuing disable command\r
-\r
-**/\r
-EFI_STATUS\r
-DisableKeyboard (\r
-  IN KEYBOARD_CONSOLE_IN_DEV *ConsoleIn\r
-  );\r
 \r
 /**\r
   Timer event handler: read a series of scancodes from 8042\r