code scrub on Ps2MouseDxe/Ps2MouseAbsolutePointer module

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8659 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian
2009-06-25 08:42:53 +00:00
parent 182b1d1623
commit cab302fd4c
4 changed files with 63 additions and 36 deletions

View File

@ -109,9 +109,9 @@ PS2MouseAbsolutePointerDriverSupported (
}
/**
Start this driver on ControllerHandle by opening a IsaIo
protocol, creating PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid
finnally.
Start this driver on ControllerHandle by opening a IsaIo protocol, creating
PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid
finally.
@param This Protocol instance pointer.
@param ControllerHandle Handle of device to bind driver to
@ -363,7 +363,7 @@ ErrorExit:
}
if (MouseAbsolutePointerDev != NULL) {
gBS->FreePool (MouseAbsolutePointerDev);
FreePool (MouseAbsolutePointerDev);
}
gBS->CloseProtocol (
@ -466,7 +466,7 @@ PS2MouseAbsolutePointerDriverStop (
gBS->CloseEvent (MouseAbsolutePointerDev->AbsolutePointerProtocol.WaitForInput);
FreeUnicodeStringTable (MouseAbsolutePointerDev->ControllerNameTable);
gBS->FreePool (MouseAbsolutePointerDev);
FreePool (MouseAbsolutePointerDev);
gBS->CloseProtocol (
Controller,