soc/amd/common: remove superfluous NULL initializers on globals
Global variables that are unitialized in C programs reside in the .bss section. By definition, this section is cleared to 0. Therefore, remove the explicit NULL initialization because it's completely unnecessary. Change-Id: I9e7a5a1e2110aa48a5497ab7e2b06676dd557763 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/22313 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
parent
e3f7d44d3b
commit
8dd4006161
|
@ -30,16 +30,16 @@ void __attribute__((weak)) OemPostParams(AMD_POST_PARAMS *PostParams) {}
|
|||
|
||||
#ifndef __PRE_RAM__
|
||||
/* ACPI table pointers returned by AmdInitLate */
|
||||
static void *DmiTable = NULL;
|
||||
static void *AcpiPstate = NULL;
|
||||
static void *AcpiSrat = NULL;
|
||||
static void *AcpiSlit = NULL;
|
||||
static void *DmiTable;
|
||||
static void *AcpiPstate;
|
||||
static void *AcpiSrat;
|
||||
static void *AcpiSlit;
|
||||
|
||||
static void *AcpiWheaMce = NULL;
|
||||
static void *AcpiWheaCmc = NULL;
|
||||
static void *AcpiAlib = NULL;
|
||||
static void *AcpiIvrs = NULL;
|
||||
static void *AcpiCrat = NULL;
|
||||
static void *AcpiWheaMce;
|
||||
static void *AcpiWheaCmc;
|
||||
static void *AcpiAlib;
|
||||
static void *AcpiIvrs;
|
||||
static void *AcpiCrat;
|
||||
#endif /* #ifndef __PRE_RAM__ */
|
||||
|
||||
AGESA_STATUS agesawrapper_amdinitreset(void)
|
||||
|
|
|
@ -22,10 +22,10 @@
|
|||
#include <amd_pci_int_defs.h>
|
||||
#include <amd_pci_int_types.h>
|
||||
|
||||
const struct pirq_struct *pirq_data_ptr = NULL;
|
||||
u32 pirq_data_size = 0;
|
||||
const u8 *intr_data_ptr = NULL;
|
||||
const u8 *picr_data_ptr = NULL;
|
||||
const struct pirq_struct *pirq_data_ptr;
|
||||
u32 pirq_data_size;
|
||||
const u8 *intr_data_ptr;
|
||||
const u8 *picr_data_ptr;
|
||||
|
||||
/*
|
||||
* Read the FCH PCI_INTR registers 0xC00/0xC01 at a
|
||||
|
|
Loading…
Reference in New Issue