// Need expand the control section if more than 2 NIC/Target sections\r
// exist.\r
//\r
- Control->Header.Length = (UINT16)(Control->Header.Length + (NumOffset - 4) * sizeof (UINT16));\r
+ Control->Header.Length += (UINT16) (NumOffset - 4) * sizeof (UINT16);\r
}\r
}\r
\r
//\r
// Get the identifier from the handle.\r
//\r
- Status = gBS->HandleProtocol (Handle, &mIScsiPrivateGuid, (void **)&IScsiIdentifier);\r
+ Status = gBS->HandleProtocol (Handle, &mIScsiPrivateGuid, &IScsiIdentifier);\r
if (EFI_ERROR (Status)) {\r
ASSERT (FALSE);\r
return ;\r
Status = gBS->HandleProtocol (\r
Controller,\r
&gEfiDevicePathProtocolGuid,\r
- (void **)&DevicePath\r
+ &DevicePath\r
);\r
if (EFI_ERROR (Status)) {\r
return 0;\r
return 0;\r
}\r
\r
- Status = gBS->HandleProtocol (PciIoHandle, &gEfiPciIoProtocolGuid, (void **)&PciIo);\r
+ Status = gBS->HandleProtocol (PciIoHandle, &gEfiPciIoProtocolGuid, &PciIo);\r
if (EFI_ERROR (Status)) {\r
return 0;\r
}\r
Status = gBS->HandleProtocol (\r
Controller,\r
&gEfiSimpleNetworkProtocolGuid,\r
- (void **)&Snp\r
+ &Snp\r
);\r
ASSERT_EFI_ERROR (Status);\r
\r
SectionOffset = &Control->NIC0Offset;\r
\r
for (Index = 0; Index < HandleCount; Index++) {\r
- Status = gBS->HandleProtocol (Handles[Index], &mIScsiPrivateGuid, (void **)&IScsiIdentifier);\r
+ Status = gBS->HandleProtocol (Handles[Index], &mIScsiPrivateGuid, &IScsiIdentifier);\r
if (EFI_ERROR (Status)) {\r
ASSERT (FALSE);\r
return ;\r
EFI_ACPI_TABLE_VERSION Version;\r
UINT32 Signature;\r
\r
- Status = gBS->LocateProtocol (&gEfiAcpiSupportProtocolGuid, NULL, (void **)&AcpiSupport);\r
+ Status = gBS->LocateProtocol (&gEfiAcpiSupportProtocolGuid, NULL, &AcpiSupport);\r
if (EFI_ERROR (Status)) {\r
return ;\r
}\r
Status = AcpiSupport->GetAcpiTable (\r
AcpiSupport,\r
Index,\r
- (void **)&Table,\r
+ &Table,\r
&Version,\r
&TableHandle\r
);\r
return ;\r
}\r
\r
- Heap = (UINT8 *) Table + IBFT_HEAP_OFFSET;\r
+ Heap = (CHAR8 *) Table + IBFT_HEAP_OFFSET;\r
\r
//\r
// Fill in the various section of the iSCSI Boot Firmware Table.\r