From 9749a85cb0aea99818a7b0047cbb04fa0a60e07c Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 9 May 2018 19:06:46 +0200 Subject: nb/intel/i945/raminit.c: Remove not necessary braces {} Braces {} are not necessary for single statement blocks. Change-Id: I2a2d8672fe3f53450dcfa53dc127b89b4aa6b75e Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/26201 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Felix Held --- src/northbridge/intel/i945/raminit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/northbridge/intel/i945') diff --git a/src/northbridge/intel/i945/raminit.c b/src/northbridge/intel/i945/raminit.c index b2348f5c07..483d5d3d70 100644 --- a/src/northbridge/intel/i945/raminit.c +++ b/src/northbridge/intel/i945/raminit.c @@ -504,14 +504,12 @@ static void gather_common_timing(struct sys_info *sysinfo, } dimm_mask |= (1 << i); } - if (!dimm_mask) { + if (!dimm_mask) die("No memory installed.\n"); - } - if (!(dimm_mask & ((1 << DIMM_SOCKETS) - 1))) { + if (!(dimm_mask & ((1 << DIMM_SOCKETS) - 1))) /* Possibly does not boot in this case */ printk(BIOS_INFO, "Channel 0 has no memory populated.\n"); - } } static void choose_tclk(struct sys_info *sysinfo, -- cgit v1.2.3