diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 15:10:52 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 15:10:52 +0000 |
commit | 3d6b07b6ece195c8d99c7aa3a9db7fd8383c5ada (patch) | |
tree | 0871e8193e36c193fadc1fd1464d11ccdb9052ee /Nt32Pkg | |
parent | d2ef2ab552391f8ec270ffbf41d353727a53bea4 (diff) | |
download | edk2-3d6b07b6ece195c8d99c7aa3a9db7fd8383c5ada.tar.gz edk2-3d6b07b6ece195c8d99c7aa3a9db7fd8383c5ada.tar.bz2 edk2-3d6b07b6ece195c8d99c7aa3a9db7fd8383c5ada.zip |
Pass ICC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6311 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg')
-rw-r--r-- | Nt32Pkg/WinNtBusDriverDxe/ComponentName.c | 2 | ||||
-rw-r--r-- | Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c | 19 |
2 files changed, 8 insertions, 13 deletions
diff --git a/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c b/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c index 88a068cc7b..98f2a678d1 100644 --- a/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c +++ b/Nt32Pkg/WinNtBusDriverDxe/ComponentName.c @@ -360,7 +360,7 @@ WinNtBusDriverComponentNameGetControllerName ( Status = gBS->OpenProtocol (
ChildHandle,
&gEfiWinNtIoProtocolGuid,
- &WinNtIo,
+ (VOID **) &WinNtIo,
gWinNtBusDriverBinding.DriverBindingHandle,
ChildHandle,
EFI_OPEN_PROTOCOL_GET_PROTOCOL
diff --git a/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c b/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c index 1fe42773fe..86d7929671 100644 --- a/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c +++ b/Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriver.c @@ -262,7 +262,7 @@ Returns: Status = gBS->OpenProtocol (
ControllerHandle,
&gEfiDevicePathProtocolGuid,
- &ParentDevicePath,
+ (VOID **) &ParentDevicePath,
This->DriverBindingHandle,
ControllerHandle,
EFI_OPEN_PROTOCOL_BY_DRIVER
@@ -285,7 +285,7 @@ Returns: Status = gBS->OpenProtocol (
ControllerHandle,
&gEfiWinNtThunkProtocolGuid,
- &WinNtThunk,
+ (VOID **) &WinNtThunk,
This->DriverBindingHandle,
ControllerHandle,
EFI_OPEN_PROTOCOL_BY_DRIVER
@@ -345,7 +345,6 @@ Returns: // TODO: EFI_SUCCESS - add return value to function comment
{
EFI_STATUS Status;
- EFI_STATUS InstallStatus;
EFI_WIN_NT_THUNK_PROTOCOL *WinNtThunk;
EFI_DEVICE_PATH_PROTOCOL *ParentDevicePath;
WIN_NT_BUS_DEVICE *WinNtBusDevice;
@@ -370,7 +369,7 @@ Returns: Status = gBS->OpenProtocol (
ControllerHandle,
&gEfiDevicePathProtocolGuid,
- &ParentDevicePath,
+ (VOID **) &ParentDevicePath,
This->DriverBindingHandle,
ControllerHandle,
EFI_OPEN_PROTOCOL_BY_DRIVER
@@ -382,7 +381,7 @@ Returns: Status = gBS->OpenProtocol (
ControllerHandle,
&gEfiWinNtThunkProtocolGuid,
- &WinNtThunk,
+ (VOID **) &WinNtThunk,
This->DriverBindingHandle,
ControllerHandle,
EFI_OPEN_PROTOCOL_BY_DRIVER
@@ -433,7 +432,6 @@ Returns: // Loop on the Variable list. Parse each variable to produce a set of handles that
// represent virtual hardware devices.
//
- InstallStatus = EFI_NOT_FOUND;
for (Index = 0; Index < NT_PCD_ARRAY_SIZE; Index++) {
PcdTempStr = (VOID *)LibPcdGetPtr (mPcdEnvironment[Index].Token);
ASSERT (PcdTempStr != NULL);
@@ -563,14 +561,11 @@ Returns: Status = gBS->OpenProtocol (
ControllerHandle,
&gEfiWinNtThunkProtocolGuid,
- &WinNtThunk,
+ (VOID **) &WinNtThunk,
This->DriverBindingHandle,
WinNtDevice->Handle,
EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER
);
- if (!EFI_ERROR (Status)) {
- InstallStatus = EFI_SUCCESS;
- }
}
}
@@ -635,7 +630,7 @@ Returns: Status = gBS->OpenProtocol (
ControllerHandle,
&gWinNtBusDriverGuid,
- &WinNtBusDevice,
+ (VOID **) &WinNtBusDevice,
This->DriverBindingHandle,
ControllerHandle,
EFI_OPEN_PROTOCOL_GET_PROTOCOL
@@ -678,7 +673,7 @@ Returns: Status = gBS->OpenProtocol (
ChildHandleBuffer[Index],
&gEfiWinNtIoProtocolGuid,
- &WinNtIo,
+ (VOID **) &WinNtIo,
This->DriverBindingHandle,
ControllerHandle,
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|