From 9cfbe8222b404a60ecd5a3f4b949871a0568b624 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 3 May 2007 08:54:23 +0000 Subject: [PATCH] Our die() implementation already consists of an endless loop, so this is dead code. Also, it makes writing unit-tests for these functions harder. Signed-off-by: Uwe Hermann Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@303 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- device/pci_ops.c | 1 - device/smbus_ops.c | 1 - 2 files changed, 2 deletions(-) diff --git a/device/pci_ops.c b/device/pci_ops.c index 80cb8f7199..28d1519da3 100644 --- a/device/pci_ops.c +++ b/device/pci_ops.c @@ -42,7 +42,6 @@ static struct bus *get_pbus(struct device *dev) printk(BIOS_ALERT, "%s: %s(%s) Cannot find PCI bus operations", __func__, dev->dtsname, dev_path(dev)); die(""); - for (;;) ; } return pbus; } diff --git a/device/smbus_ops.c b/device/smbus_ops.c index 5dfad0ea48..a90639aff1 100644 --- a/device/smbus_ops.c +++ b/device/smbus_ops.c @@ -36,7 +36,6 @@ struct bus *get_pbus_smbus(device_t dev) printk_alert("%s Cannot find smbus bus operations", dev_path(dev)); die(""); - for (;;) ; } return pbus; }