vc/amd/agesa: Remove unused assignments
'Status' is assigned a value three times before it is checked. Remove the first two assignments. Change-Id: Id7136d62b4dbd6dce877983467960373b3a7ac22 Signed-off-by: Joe Moore <awokd@danwin1210.me> Found-by: Coverity CID 1241809 Reviewed-on: https://review.coreboot.org/c/coreboot/+/36257 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
efa022db50
commit
0560a66450
|
@ -474,13 +474,11 @@ GfxIntegratedEnumConnectorsForDevice (
|
|||
if (ExtDisplayDeviceInfo == NULL) {
|
||||
//Run out of supported display device types
|
||||
AGESA_STATUS_UPDATE (AGESA_ERROR, ConnectorEnumInfo.Status);
|
||||
Status = AGESA_ERROR;
|
||||
PcieConfigDisableEngine (ConnectorEnumInfo.Engine);
|
||||
}
|
||||
|
||||
if ((Gfx->Gnb3dStereoPinIndex != 0) && (ConnectorEnumInfo.Engine->Type.Ddi.DdiData.HdpIndex == (Gfx->Gnb3dStereoPinIndex - 1))) {
|
||||
AGESA_STATUS_UPDATE (AGESA_ERROR, ConnectorEnumInfo.Status);
|
||||
Status = AGESA_ERROR;
|
||||
PcieConfigDisableEngine (ConnectorEnumInfo.Engine);
|
||||
}
|
||||
|
||||
|
|
|
@ -488,13 +488,11 @@ GfxIntegratedEnumConnectorsForDevice (
|
|||
if (ExtDisplayDeviceInfo == NULL) {
|
||||
//Run out of supported display device types
|
||||
AGESA_STATUS_UPDATE (AGESA_ERROR, ConnectorEnumInfo.Status);
|
||||
Status = AGESA_ERROR;
|
||||
PcieConfigDisableEngine (ConnectorEnumInfo.Engine);
|
||||
}
|
||||
|
||||
if ((Gfx->Gnb3dStereoPinIndex != 0) && (ConnectorEnumInfo.Engine->Type.Ddi.DdiData.HdpIndex == (Gfx->Gnb3dStereoPinIndex - 1))) {
|
||||
AGESA_STATUS_UPDATE (AGESA_ERROR, ConnectorEnumInfo.Status);
|
||||
Status = AGESA_ERROR;
|
||||
PcieConfigDisableEngine (ConnectorEnumInfo.Engine);
|
||||
}
|
||||
|
||||
|
|
|
@ -488,13 +488,11 @@ GfxIntegratedEnumConnectorsForDevice (
|
|||
if (ExtDisplayDeviceInfo == NULL) {
|
||||
//Run out of supported display device types
|
||||
AGESA_STATUS_UPDATE (AGESA_ERROR, ConnectorEnumInfo.Status);
|
||||
Status = AGESA_ERROR;
|
||||
PcieConfigDisableEngine (ConnectorEnumInfo.Engine);
|
||||
}
|
||||
|
||||
if ((Gfx->Gnb3dStereoPinIndex != 0) && (ConnectorEnumInfo.Engine->Type.Ddi.DdiData.HdpIndex == (Gfx->Gnb3dStereoPinIndex - 1))) {
|
||||
AGESA_STATUS_UPDATE (AGESA_ERROR, ConnectorEnumInfo.Status);
|
||||
Status = AGESA_ERROR;
|
||||
PcieConfigDisableEngine (ConnectorEnumInfo.Engine);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue