summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/intel/fsp1_0/hob.c2
-rw-r--r--src/lib/libgcov.c2
-rw-r--r--src/mainboard/google/link/i915.c2
-rw-r--r--src/northbridge/amd/lx/northbridgeinit.c4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/intel/fsp1_0/hob.c b/src/drivers/intel/fsp1_0/hob.c
index 4aac147ea9..1c6d0bba69 100644
--- a/src/drivers/intel/fsp1_0/hob.c
+++ b/src/drivers/intel/fsp1_0/hob.c
@@ -167,7 +167,7 @@ void print_guid_type_attributes(void *Hobptr)
void print_hob_type_structure(u16 Hobtype, void *Hoblistptr)
{
u32 *Currenthob;
- u32 *Nexthob = 0;
+ u32 *Nexthob = NULL;
u8 Lasthob = 0;
u32 Currenttype;
const char *Currenttypestr;
diff --git a/src/lib/libgcov.c b/src/lib/libgcov.c
index 70a4073253..887351aa57 100644
--- a/src/lib/libgcov.c
+++ b/src/lib/libgcov.c
@@ -409,7 +409,7 @@ gcov_exit(void)
gcov_position_t summary_pos = 0;
gcov_position_t eof_pos = 0;
const char *fname, *s;
- struct gcov_fn_buffer *fn_buffer = 0;
+ struct gcov_fn_buffer *fn_buffer = NULL;
struct gcov_fn_buffer **fn_tail = &fn_buffer;
fname = gi_ptr->filename;
diff --git a/src/mainboard/google/link/i915.c b/src/mainboard/google/link/i915.c
index 9a87ef39bd..755fecb313 100644
--- a/src/mainboard/google/link/i915.c
+++ b/src/mainboard/google/link/i915.c
@@ -157,7 +157,7 @@ static unsigned long times[4096];
static int run(int index)
{
int i, prev = 0;
- struct iodef *id, *lastidread = 0;
+ struct iodef *id, *lastidread = NULL;
unsigned long u, t;
if (index >= niodefs)
return index;
diff --git a/src/northbridge/amd/lx/northbridgeinit.c b/src/northbridge/amd/lx/northbridgeinit.c
index 1315b2aba2..b8a67ee2f8 100644
--- a/src/northbridge/amd/lx/northbridgeinit.c
+++ b/src/northbridge/amd/lx/northbridgeinit.c
@@ -236,7 +236,7 @@ static void GLIUInit(struct gliutable *gl)
/* ************************************************************************** */
static void GLPCIInit(void)
{
- struct gliutable *gl = 0;
+ struct gliutable *gl = NULL;
int i;
msr_t msr;
int msrnum, enable_preempt, enable_cpu_override;
@@ -604,7 +604,7 @@ static void rom_shadow_settings(void)
static void enable_L1_cache(void)
{
- struct gliutable *gl = 0;
+ struct gliutable *gl = NULL;
int i;
msr_t msr;
uint8_t SysMemCacheProp;