vendorcode/amd: drop dead code

Change-Id: Ie67e1f7887e8df497d7dfd956badd9e06fd5d8a3
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1254651
Reviewed-on: https://review.coreboot.org/17833
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Patrick Georgi 2016-12-13 15:40:26 +01:00 committed by Patrick Georgi
parent 83f75bfeb9
commit 0f01c09ef1
4 changed files with 0 additions and 20 deletions

View File

@ -368,13 +368,8 @@ AmdIdsRunApTaskLate (
IN AP_EXE_PARAMS *AmdApExeParams IN AP_EXE_PARAMS *AmdApExeParams
) )
{ {
MODULE_ENTRY Dispatcher = NULL;
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
AmdApExeParams->StdHeader.Func = -1; AmdApExeParams->StdHeader.Func = -1;
return AGESA_UNSUPPORTED; return AGESA_UNSUPPORTED;
if (!module) return AGESA_UNSUPPORTED;
Dispatcher = module->ModuleDispatcher;
return Dispatcher(AmdApExeParams);
} }
/********************************************************************** /**********************************************************************

View File

@ -365,13 +365,8 @@ AmdIdsRunApTaskLate (
IN AP_EXE_PARAMS *AmdApExeParams IN AP_EXE_PARAMS *AmdApExeParams
) )
{ {
MODULE_ENTRY Dispatcher = NULL;
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
AmdApExeParams->StdHeader.Func = -1; AmdApExeParams->StdHeader.Func = -1;
return AGESA_UNSUPPORTED; return AGESA_UNSUPPORTED;
if (!module) return AGESA_UNSUPPORTED;
Dispatcher = module->ModuleDispatcher;
return Dispatcher(AmdApExeParams);
} }
/********************************************************************** /**********************************************************************

View File

@ -365,13 +365,8 @@ AmdIdsRunApTaskLate (
IN AP_EXE_PARAMS *AmdApExeParams IN AP_EXE_PARAMS *AmdApExeParams
) )
{ {
MODULE_ENTRY Dispatcher = NULL;
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
AmdApExeParams->StdHeader.Func = -1; AmdApExeParams->StdHeader.Func = -1;
return AGESA_UNSUPPORTED; return AGESA_UNSUPPORTED;
if (!module) return AGESA_UNSUPPORTED;
Dispatcher = module->ModuleDispatcher;
return Dispatcher(AmdApExeParams);
} }
/********************************************************************** /**********************************************************************

View File

@ -366,13 +366,8 @@ AmdIdsRunApTaskLate (
IN AP_EXE_PARAMS *AmdApExeParams IN AP_EXE_PARAMS *AmdApExeParams
) )
{ {
MODULE_ENTRY Dispatcher = NULL;
const AMD_MODULE_HEADER* module = agesawrapper_locate_module(ModuleIdentifier);
AmdApExeParams->StdHeader.Func = -1; AmdApExeParams->StdHeader.Func = -1;
return AGESA_UNSUPPORTED; return AGESA_UNSUPPORTED;
if (!module) return AGESA_UNSUPPORTED;
Dispatcher = module->ModuleDispatcher;
return Dispatcher(AmdApExeParams);
} }
/********************************************************************** /**********************************************************************