summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/device_util.c7
-rw-r--r--src/device/smbus_ops.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index c5e03f2079..b37d1d9bfc 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -405,11 +405,8 @@ struct resource *find_resource(const struct device *dev, unsigned int index)
/* See if there is a resource with the appropriate index. */
resource = probe_resource(dev, index);
- if (!resource) {
- printk(BIOS_EMERG, "%s missing resource: %02x\n",
- dev_path(dev), index);
- die("");
- }
+ if (!resource)
+ die("%s missing resource: %02x\n", dev_path(dev), index);
return resource;
}
diff --git a/src/device/smbus_ops.c b/src/device/smbus_ops.c
index 12aaf998c9..d08965c7e0 100644
--- a/src/device/smbus_ops.c
+++ b/src/device/smbus_ops.c
@@ -8,11 +8,8 @@
struct bus *get_pbus_smbus(struct device *dev)
{
struct bus *const pbus = i2c_link(dev);
- if (!pbus->dev->ops->ops_smbus_bus) {
- printk(BIOS_ALERT, "%s Cannot find SMBus bus operations",
- dev_path(dev));
- die("");
- }
+ if (!pbus->dev->ops->ops_smbus_bus)
+ die("%s Cannot find SMBus bus operations", dev_path(dev));
return pbus;
}