From a7bf068e8289f45d87777fb4acb55b15e9debcf8 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 12 Oct 2016 19:57:38 +0200 Subject: northbridge/intel/i5000: Convert 'for(;;)' to 'die' Change-Id: I1ceea759a40d740503bde725ad6d72fab4aa7971 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/17006 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/northbridge/intel/i5000/raminit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/northbridge/intel/i5000/raminit.c b/src/northbridge/intel/i5000/raminit.c index b8925b2c98..ffc2dc29c3 100644 --- a/src/northbridge/intel/i5000/raminit.c +++ b/src/northbridge/intel/i5000/raminit.c @@ -353,8 +353,7 @@ static int i5000_amb_smbus_write(struct i5000_fbdimm *d, int byte1, int byte2) printk(BIOS_ERR, "SMBus write failed: %d/%d/%d, byte1 %02x, byte2 %02x status %04x\n", d->branch->num, d->channel->num, d->num, byte1, byte2, status); - for (;;); - return -1; + die("Error: SMBus write failed"); } static int i5000_amb_smbus_read(struct i5000_fbdimm *d, int byte1, u8 *out) -- cgit v1.2.3