Fixed compilation warning treated as error during the RELEASE build.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daniil Egranov daniil.egranov@arm.com --- Drivers/Net/MarvellYukonDxe/if_msk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Drivers/Net/MarvellYukonDxe/if_msk.c b/Drivers/Net/MarvellYukonDxe/if_msk.c index 5e7da93..8436641 100644 --- a/Drivers/Net/MarvellYukonDxe/if_msk.c +++ b/Drivers/Net/MarvellYukonDxe/if_msk.c @@ -1138,6 +1138,7 @@ mskc_attach ( UINT32 MacAddrH; EFI_STATUS Status; struct msk_if_softc *ScIf; + const CHAR8 *ModelName;
mPciIo = PciIo; mSoftc = AllocateZeroPool (sizeof (struct msk_softc)); @@ -1213,8 +1214,10 @@ mskc_attach ( Status = EFI_DEVICE_ERROR; goto RESTORE_PCI_ATTRIBS; } + + ModelName = model_name[mSoftc->msk_hw_id - CHIP_ID_YUKON_XL]; DEBUG ((EFI_D_NET, "Marvell Yukon: Marvell Technology Group Ltd. %a Id:0x%02x Rev:0x%02x\n", - model_name[mSoftc->msk_hw_id - CHIP_ID_YUKON_XL], mSoftc->msk_hw_id, mSoftc->msk_hw_rev)); + ModelName, mSoftc->msk_hw_id, mSoftc->msk_hw_rev));
mSoftc->msk_process_limit = MSK_PROC_DEFAULT; mSoftc->msk_int_holdoff = MSK_INT_HOLDOFF_DEFAULT;