X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FiScsi%2FIScsiIbft.c;h=e5d6324727698e4d87c34a2166e3fa58b98aa065;hb=93e3992d1ea50fb30c48f498d257d4e66252dd9b;hp=bf68be6a3759f3337bf56bbf60bdfc98dc1c1225;hpb=f79314fa8f44a79e862d2877e5a9b1a3a9f96791;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/iScsi/IScsiIbft.c b/MdeModulePkg/Universal/iScsi/IScsiIbft.c index bf68be6a37..e5d6324727 100644 --- a/MdeModulePkg/Universal/iScsi/IScsiIbft.c +++ b/MdeModulePkg/Universal/iScsi/IScsiIbft.c @@ -101,7 +101,7 @@ Returns: // Need expand the control section if more than 2 NIC/Target sections // exist. // - Control->Header.Length = (UINT16)(Control->Header.Length + (NumOffset - 4) * sizeof (UINT16)); + Control->Header.Length += (UINT16) (NumOffset - 4) * sizeof (UINT16); } } @@ -191,7 +191,7 @@ Returns: // // Get the identifier from the handle. // - Status = gBS->HandleProtocol (Handle, &mIScsiPrivateGuid, (void **)&IScsiIdentifier); + Status = gBS->HandleProtocol (Handle, &mIScsiPrivateGuid, &IScsiIdentifier); if (EFI_ERROR (Status)) { ASSERT (FALSE); return ; @@ -278,7 +278,7 @@ Returns: Status = gBS->HandleProtocol ( Controller, &gEfiDevicePathProtocolGuid, - (void **)&DevicePath + &DevicePath ); if (EFI_ERROR (Status)) { return 0; @@ -293,7 +293,7 @@ Returns: return 0; } - Status = gBS->HandleProtocol (PciIoHandle, &gEfiPciIoProtocolGuid, (void **)&PciIo); + Status = gBS->HandleProtocol (PciIoHandle, &gEfiPciIoProtocolGuid, &PciIo); if (EFI_ERROR (Status)) { return 0; } @@ -333,7 +333,7 @@ Returns: Status = gBS->HandleProtocol ( Controller, &gEfiSimpleNetworkProtocolGuid, - (void **)&Snp + &Snp ); ASSERT_EFI_ERROR (Status); @@ -392,7 +392,7 @@ Returns: SectionOffset = &Control->NIC0Offset; for (Index = 0; Index < HandleCount; Index++) { - Status = gBS->HandleProtocol (Handles[Index], &mIScsiPrivateGuid, (void **)&IScsiIdentifier); + Status = gBS->HandleProtocol (Handles[Index], &mIScsiPrivateGuid, &IScsiIdentifier); if (EFI_ERROR (Status)) { ASSERT (FALSE); return ; @@ -552,7 +552,7 @@ Returns: EFI_ACPI_TABLE_VERSION Version; UINT32 Signature; - Status = gBS->LocateProtocol (&gEfiAcpiSupportProtocolGuid, NULL, (void **)&AcpiSupport); + Status = gBS->LocateProtocol (&gEfiAcpiSupportProtocolGuid, NULL, &AcpiSupport); if (EFI_ERROR (Status)) { return ; } @@ -563,7 +563,7 @@ Returns: Status = AcpiSupport->GetAcpiTable ( AcpiSupport, Index, - (void **)&Table, + &Table, &Version, &TableHandle ); @@ -613,7 +613,7 @@ Returns: return ; } - Heap = (UINT8 *) Table + IBFT_HEAP_OFFSET; + Heap = (CHAR8 *) Table + IBFT_HEAP_OFFSET; // // Fill in the various section of the iSCSI Boot Firmware Table.