summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/amd_pci_util.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2017-11-03 11:50:14 -0600
committerAaron Durbin <adurbin@chromium.org>2017-11-04 02:58:35 +0000
commit8dd40061619913c9f7dea9a82329ae13fc73e450 (patch)
treee16d5a2311c56cb27fff9b9db76397c04ba4736f /src/soc/amd/common/amd_pci_util.c
parente3f7d44d3b11d4a87b3eff3d9b3c6aa077fdf36c (diff)
downloadcoreboot-8dd40061619913c9f7dea9a82329ae13fc73e450.tar.xz
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>
Diffstat (limited to 'src/soc/amd/common/amd_pci_util.c')
-rw-r--r--src/soc/amd/common/amd_pci_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/amd/common/amd_pci_util.c b/src/soc/amd/common/amd_pci_util.c
index 0a7c8a130b..ff9374fee0 100644
--- a/src/soc/amd/common/amd_pci_util.c
+++ b/src/soc/amd/common/amd_pci_util.c
@@ -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